windows 如何在www.example.com中使用Python打印带有表情符号的文本replit.com,我不知道为什么会出现此错误

rhfm7lfc  于 2023-01-02  发布在  Windows
关注(0)|答案(1)|浏览(86)

This is what I am trying to do [这是我试的,不知道为什么出错,不知道怎么打印带表情的文字。]

(https://i.stack.imgur.com/5Blv4.png)
print("""
R1cHL3
December 30th 2022
I am signing up for Replit's 100 days of Python 
challenge!
I will make sure to spend some time every day coding
along, for a minimum of 10 minute a day.
I'll be using Replit, an amazing online IDE so I can do 
this from my phone wherever I happen to be. No excuses
for not coding from the middle of a field!
"")
print("I am feeling") 
print(u'\U0001f604')
print("You can follow my progress at") --- Line 14

File "main.py", line 15
    print("You can follow my progress at")
                                     ^
SyntaxError: EOF while scanning triple-quoted string literal

谢谢你。
我正在尝试不同的方法来期待它的工作。尝试和尝试,直到它有希望工作

efzxgjgh

efzxgjgh1#

print("""
...
...
this from my phone wherever I happen to be. No excuses
for not coding from the middle of a field!
"")

这就是问题所在。最后一行应该有三个引号,而不是两个。

相关问题