Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
scrapy 输出乱码是怎么回事?
ioven
·
Dec 22, 2015
· 3025 views
This topic created in 3785 days ago, the information mentioned may be changed or developed.
>>> from scrapy.utils import display
>>> display.pprint(123456)
[34m123456 [39;49;00m
虽然不影响运行但看起来很不舒服
Scrapy
display
utils
pprint
5 replies
•
2015-12-22 17:02:14 +08:00
1
wlsnx
Dec 22, 2015
windows ?
2
oott123
Dec 22, 2015 via Android
这好像是颜色
换 bash
3
ioven
OP
Dec 22, 2015
@
wlsnx
@
oott123
win7, 用 powershell 执行也是这样
修改代码去掉颜色设置可以正常显示
想了解有没有更好的方式
4
oott123
Dec 22, 2015
@
ioven
用 git bash 或者 babun
5
ioven
OP
Dec 22, 2015
@
oott123
babun 貌似很给力,试试看
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2479 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 37ms ·
UTC 08:42
·
PVG 16:42
·
LAX 01:42
·
JFK 04:42
♥ Do have faith in what you're doing.
❯