Skip to main content
 首页 » 编程设计

带有括号和引号的 python 3.5 syntaxerror

2024年12月31日11Free-Thinker

我是编程新手,但是当我打印时:

>>>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)"?