Python Rich:表情符号未显示

Python Rich: Emojis not showing

from rich import print
from rich.console import Console
console = Console()


#example 1
print("Hello, [bold magenta]World[/bold magenta]!", ":vampire:", locals())

#example 2
console = Console()
print("Hello, [bold magenta]World[/bold magenta]!", "")
console.print("Hello", "World!", style="bold red")

#example 3
print(f"I wonder what this looks like 1 + 1 = {1 + 1}")
print({"a": [1, 2, 3], "b" : {"c" : 1}})


#example 4
console.print("This is some text.")
console.print("This is some text.", style="bold")
console.print("This is some text.", style="bold underline")
console.print("This is some text.", style="bold underline red")
console.print("This is some text.", style="bold underline red on black")
 
#example 5
console.print(":thumbs_up: File downloaded!")

input("")

所以当我 运行 它我得到我没有得到什么错误请帮助 我主要对这些主题感到困惑,所以我不知道错误是什么

enter image description here

经典 windows 控制台没有很好地支持表情符号。如果您安装新的 Windows Terminal,您会发现您的表情符号将按预期显示。