[英]Anaconda Idle - print pastes SyntaxError: invalid syntax
Hello dear Stack community,你好,亲爱的 Stack 社区,
I am very new to Python.我对 Python 很陌生。 I've bought a few books and I am eager to learn from my mistakes.我买了几本书,我渴望从我的错误中吸取教训。 However, this book doesn't include why this error pops up, even though I thought I did everything correctly.然而,这本书没有说明为什么会出现这个错误,尽管我认为我做的一切都是正确的。 I pasted a picture in for you to follow my steps!我贴了一张图片让你跟着我的步骤!
Yours, Dark!你的,黑暗!
Python 3.6 or later. Python 3.6 或更高版本。 Used f-string.使用 f 弦。
print(f"Congratulations dumbass, you guessed the number in {count} tries!")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.