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
rich 库为什么不能打印有颜色的字
songdg
·
May 26, 2020
· 2531 views
This topic created in 2166 days ago, the information mentioned may be changed or developed.
from rich import print
print("[bold red]alert![/bold red] Something happened")
这应该能打印出粗体红色“alert!”,为什么我在 spyder 下运行这段代码字体一点变化都没有。
print
alert
bold
rich
1 replies
•
2020-05-26 13:33:05 +08:00
1
xiaolinjia
May 26, 2020
我估计是你控制台不支持吧。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
898 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 44ms ·
UTC 18:53
·
PVG 02:53
·
LAX 11:53
·
JFK 14:53
♥ Do have faith in what you're doing.
❯