![](/img/trans.png)
[英]Is there a way to print certain unicode characters in python terminal from Windows?
[英]Is there a way for my cmd to print out any unicode from within Python?
(另請閱讀編輯)
我正在做一項與游戲有關的任務。 我的講師特別指出,只允許標准庫中的模塊,這意味着不允許使用第三方模塊。
我希望能夠從所有可能的unicode字符列表中打印出我想要的任何unicode字符。 打印此:
print(" ⚫ ") #Medium Black Circle
print(" 😸 ") #some smiling cat i found on the internet
print(" 🍕 ") # and a slice of pizza
它只是在Windows命令提示符下輸出:
?
??
??
我該如何做到這一點? :(
編輯:
如用戶@Mofi所述,Windows命令提示符為
非圖形用戶界面
因此, emojis無法真正顯示在cmd中。
只是為了進一步澄清,如果表情符號不能在cmd上顯示我可以,但是“ 中黑圈 ”怎么樣看起來像是類似於“█”或“╝”等的文字。
並且,如果可能的話,我在哪里可以獲得類似於“█”,“░”和“╝”的所有字符的列表?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.