我是编程新手,但是当我打印时:
>>>print("Vladimir")
^
我得到:
SyntaxError: invalid character in identifier
我不明白为什么引号无效。我必须按两次引号键才能让它们出现在屏幕上,我不知道这是否与任何事情有关。任何想法肯定会有所帮助
最佳答案
看起来像是 Raspberry 区域设置问题。您必须更改键盘布局。
https://www.raspberrypi.org/forums/viewtopic.php?t=24751
Sounds like you have selected a layout where the quotes are dead keys, for typing accents. Perhaps "English (US, international with dead keys)" instead of plain "English (US)"?
关于带有括号和引号的 python 3.5 syntaxerror,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53037854/