python

解决WIN7下Sublime运行python代码出现的UnicodeEncodeError错误

在win7下安装sublime后,编写python脚本并执行,没有任何反应,ctrl+`打开控制台之后才发现执行程序时出现了错误:

Running python.exe -u E:\文档\test.py
 Traceback (most recent call last):
 File ".\sublime_plugin.py", line 337, in run_
 return self.run(**args)
 File ".\exec.py", line 154, in run
 File ".\exec.py", line 48, in __init__
 File ".\subprocess.py", line 633, in __init__
 File ".\subprocess.py", line 842, in _execute_child
 UnicodeEncodeError: 'ascii' codec can't encode characters in position 17-19: ordinal not in range(128)

阅读更多 »解决WIN7下Sublime运行python代码出现的UnicodeEncodeError错误

解决OpenWRT下python出现的‘md_rand.c: 322: ssleay_rand_add: Assertion `md_c[1] == md_count[1]’ failed’ 错误

在路由器刷了 OpenWRT系统后,可以运行某python应用,但经常会出现错误提示

<code>……python: md_rand.c: 322: ssleay_rand_add: Assertion `md_c[1] == md_count[1]' failed
</code>

阅读更多 »解决OpenWRT下python出现的‘md_rand.c: 322: ssleay_rand_add: Assertion `md_c[1] == md_count[1]’ failed’ 错误