[英]Positioning the cursor in Windows 10 terminal window using colorama
[英]Using Colorama on Python 3.7 on Windows 10
我正在嘗試使用 colorama 將我的一部分代碼打印出來。 我有:
from colorama import init, Fore, Style
init(convert=True)
print(Fore.RED + 'Hello')
但代碼輸出沒有顏色變化。 我究竟做錯了什么?
它在沒有 init(convert=True) 的情況下工作。 你應該使用 init()
from colorama import init, Fore, Style
init()
print(Fore.RED + 'Hello')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.