我不能在Python中输入字母“&”(PyCharm)它用空格{BUG}替换它

问题描述 投票:2回答:1

在变量char的“”里面我输入了Shift7,我得到了你能看到的空间! Inside the " " I have typed the Shift7 and gives me a space所以我试图通过get请求调用api。我想在之后作为参数传递:<endpoint>&per_page=100

但是当我输入它时,字符“&”,它给了我一个“空间”

喜欢:

<endpoint> per_page=100

即使我尝试在String中粘贴一个带有“&”字符的url,它也会用空格替换它,api会给我错误状态。

似乎我不能在任何地方使用字符“&”作为字符或字符串

对于发生了什么的任何想法?

python string url pycharm character
1个回答
1
投票

@Jacques Gaudin改变字体工作。感谢名单!

© www.soinside.com 2019 - 2024. All rights reserved.