V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Freakr  ›  全部回复第 2 页 / 共 2 页
回复总数  28
1  2  
@duke807 十年前是要装的
用 U 盘启动,就可以 dd 了
qwA5LE 已用
YvR9jD
L3ZYkM
2015-06-03 15:37:00 +08:00
回复了 tdoly 创建的主题 Python BaiduFm 命令行 python 版
登录前正常,登录后报错
File "/home/????/baidufm-py-master/baidufm/fm_cli.py", line 130, in init_head
self.head_win.addstr(0, len_x, user_name, curses.color_pair(2))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-5: ordinal not in range(128)
用户名是中文的问题?在fm_cli.py加了“
import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )
”后成功登录。
2015-06-03 13:15:35 +08:00
回复了 tdoly 创建的主题 Python BaiduFm 命令行 python 版
好吧,upgrade了requests,可以了
2015-06-03 13:07:47 +08:00
回复了 tdoly 创建的主题 Python BaiduFm 命令行 python 版
Ubuntu14.04 Python2.7.6 requests里没有packages
requests.packages.urllib3.disable_warnings()无法执行

>>> dir(requests)
['ConnectionError', 'HTTPError', 'NullHandler', 'PreparedRequest', 'Request', 'RequestException', 'Response', 'Session', 'Timeout', 'TooManyRedirects', 'URLRequired', '__author__', '__build__', '__builtins__', '__copyright__', '__doc__', '__file__', '__license__', '__name__', '__package__', '__path__', '__title__', '__version__', 'adapters', 'api', 'auth', 'certs', 'codes', 'compat', 'cookies', 'delete', 'exceptions', 'get', 'head', 'hooks', 'logging', 'models', 'options', 'patch', 'post', 'put', 'request', 'session', 'sessions', 'status_codes', 'structures', 'utils']
@kisshere 粉红色好恐怖,确定不是便血了么……
2015-03-20 17:14:47 +08:00
回复了 babyname 创建的主题 程序员 请教个数学问题,编程相关。
@staticor 感觉像初中,大一不是微积分么。
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1006 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 22:13 · PVG 06:13 · LAX 15:13 · JFK 18:13
Developed with CodeLauncher
♥ Do have faith in what you're doing.