Python控制檯輸出字體顏色

Python

print("\033[93m 注意:這裏的LOG_NUMBER不能爲空 \033[0m")

\033[93m後面必須有空格;\033[0m前面必須有空格python

shell效果

shell效果

參考

Print in terminal with colors? python控制檯顏色輸出以及字符串格式化輸出shell

相關文章
相關標籤/搜索