带有括号和引号的 python 3.5 syntaxerror

标签 python

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

>>>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/

相关文章:

python - 如何让python装饰器像标签一样工作来进行函数调用 "by tag"

python - python代码中 '@'是什么意思?

python - 在 Apache Beam 中导入 Google Firestore Python 客户端

python - 在 Pandas 中,如何使用具有相似索引的另一个数据框中的值修补具有缺失值的数据框?

python - 添加新的处理程序来运行 python Tornado 服务器

python - Python 和 R 之间的线性回归系数之间的差异

python - 正则表达式 搜索行尾和下一行的开头

python - 'remove vowels' 函数仅打印 'readline( )' 的第一个字母,我做错了什么?

python - 在 python 3.6.1 中找不到平台相关库 <exec_prefix>

python - 如果文件夹中存在文件,请更改文件夹名称