Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Python 3.4 多重处理不适用于 py2exe
这与以下内容几乎相同这个问题 https stackoverflow com questions 26001133 python multiprocessing process executes a wrong target package
python
py2exe
Python34
cxfreeze
pythonmultiprocessing
如何在 Kivy 中设置小部件/布局的最小允许宽度/高度?
我有包含 3 个元素的 BoxLayout 我需要第一个和最后一个元素占据最小的可用空间 中间元素具有固定比例 1 1 因此当我调整窗口大小时 侧面元素变得太小并且内容会超出其中 我需要例如标签 或按钮 甚至不同元素的集合 文本始终insi
python3x
size
kivy
Python34
HTTPResponse 对象 -- JSON 对象必须是 str,而不是“字节”
我一直在尝试更新一个名为的小型 Python 库libpynexmo https github com marcuz libpynexmo使用 Python 3 我一直被这个功能困住了 def send request json self
json
python3x
Python34
vonage
无法通过模块查看或修改 PYTHONHASHSEED 的值
试图看到的价值PYTHONHASHSEED https docs python org 3 4 using cmdline html highlight pythonhashseed envvar PYTHONHASHSEED通过使用 th
python
environmentvariables
Python34
在python中逐层打印二叉树
我想按以下方式打印二叉树 10 6 12 5 7 11 13 我已经编写了用于插入节点的代码 但无法编写用于打印树的代码 所以请帮忙解决这个问题 我的代码是 class Node def init self data self data d
python
Python34
Windows 上 Python 3.4 中的 Tkinter 在退出时不会将内部剪贴板数据发布到 Windows 剪贴板
我使用以下代码将小脚本的结果放置在剪贴板中 from tkinter import Tk r Tk r withdraw r clipboard clear r clipboard append Result 它在 Python 3 3 5
python
Windows
Tkinter
clipboard
Python34
当 var 应该有一个值时,“TypeError:无法将 'NoneType' 对象隐式转换为 str”
import sys from tkinter import def print print Encoded message with offset gui Tk gui title Caesar Cypher Encoder Button
python
Tkinter
Python34
Python ImportError:无法在 virtualenv 中导入名称“_imagingtk”
我想开始使用枕头 但遇到了一些问题 起初 我以为我可以简单地pip install pillow 所以我激活了我的 virtualenv 并做到了这一点 当它不起作用时 我意识到我需要为枕头安装一些依赖项 安装 http pillow re
python
Tkinter
virtualenv
Python34
pythonimaginglibrary
使用 cx_Freeze 创建可执行文件后不断收到“filedialog”错误
我正在尝试使用 python 脚本中的 cx Freeze 创建可执行文件 但 tkinter 模块的某些部分似乎未加载到可执行文件中 脚本文件包含导入语句 from tkinter import from tkinter filedial
cxfreeze
Python34
如何在Python中创建循环[重复]
这个问题在这里已经有答案了 这是我的代码 my Sentence input Enter your sentence sen length len my Sentence sen len int sen length while not s
python
loops
Python34
出现错误:write() 不接受关键字参数
gd open gamedata py rb gd write CharHealth 100 gd close 我收到错误消息 write 不接受关键字参数 但我不明白为什么 我最好的解释是代码试图解释 CharHealth 100 作为关
python
Python34
pySerial 与 python 2.7 和 3.4 的差异
我正在开发一个项目 需要通过串口将一些数字从 Windows 10 中的 python 发送到 arduino uno 作为一个简单的测试 我只想通过发送 2 来打开 LED 并通过从命令提示符发送 4 来关闭 LED 尽管我希望最终能够将
python27
Arduino
Python34
pyttsx:没有名为“engine”的模块
我正在尝试使用安装 TTS 包this http pyttsx readthedocs org en latest install html 一切都很好 直到我尝试执行以下命令 import pyttsx 我收到了这个错误 File usr
texttospeech
Python34
speechSynthesis
python 3.4 中使用正则表达式的语法无效
我在 python 3 4 中使用以下表达式语法错误但相同的代码可以在 python 2 7 中运行 block re compile ur DATA value S s n DATA value2 re IGNORECASE re DOT
python
regex
python3x
Python34
字符串性能 - Windows 10 下的 Python 2.7 与 Python 3.4 对比 Ubuntu
Use case一个简单的函数 用于检查特定字符串是否在另一个字符串中的位置为 3 的倍数 请参阅此处现实世界的例子 https en wikipedia org wiki Stop codon 在 DNA 序列中寻找终止密码子 功能 sl
python
performance
python27
Python34
Tkinter,Windows:如何查看Windows任务栏中没有标题栏的窗口?
我创建了一个窗口 root Tk 并删除了标题栏 root overrideredirect True 现在该窗口不在Windows 的任务栏上 如何在任务栏中显示它 如果其他窗口在我的上面 我只想将我的窗口放在前面 Tk 没有提供一种方法
python
Windows
Tkinter
Python34
Pyinstaller 与 scipy.signal ImportError:DLL 加载失败
使用 PyInstaller 3 3 Python 3 4 我编译了一个需要使用 scipy signal periodogram 函数的程序 它导致 exe 在启动时崩溃 我一直在 stack Overflow 和其他网站上搜索尝试包含正
dll
scipy
Python34
pyinstaller
Django 装置使用默认值保存
我正在使用 Django 1 7 但我的装置有问题 我希望 Django 使用默认值或使用save 方法来创建未指定的值 这是我当前的对象 File uuidable py import uuid from django db import
python
django
fixtures
Python34
django17
Pyautogui TypeError:“NoneType”对象不可迭代
我正在尝试使用locateCenterOnScreen PyAutoGUI 的功能 但是它会引发 Traceback most recent call last File C Users windows Desktop asd py lin
python
Python34
pyautogui
为 python3 安装 OpenCV
我遵循了许多手册 教程如何安装OpenCV http docs opencv org 2 4 doc tutorials introduction linux install linux install html highlight ins
opencv
Ubuntu
Python34
1
2
3
4
5
»