Skip to main content
 首页 » 编程设计

python之我无法在 Python (PyCharm) 中输入字母 "&"它用空格替换它 {BUG}

2024年11月24日8lautakyan007

在变量 char 的 ""中,我输入了 Shift7,我得到了你可以看到的空间! 所以我试图用 get 请求调用 api。我想在之后作为参数传递:<endpoint>&per_page=100

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

喜欢:

<endpoint> per_page=100

Even when I try to copy paste a url with a "&" character in the String it replaces it with a space and the api gives me error status.

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

对正在发生的事情有什么想法吗?

请您参考如下方法:

@Jacques Gaudin 更改字体有效。谢谢!