无法运行python restful程序

2024-03-29 11:14:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用网站“https://www.python.org/”中的“python3.5”,当我试图运行HVS提供的程序时,它不起作用。你知道吗

C:\Users\sdixit23>python C:\Users\sdixit23\AppData\Local\Programs\Python\Python35-32\Shyam\NotWorking\restfulclient2.py
File      "C:\Users\sdixit23\AppData\Local\Programs\Python\Python35-32\Shyam\NotWorking\restfulclient2.py", line 26 print key + " : " + jData[key] ^ 
SyntaxError: Missing parentheses in call to 'print' C:\Users\sdixit23>

你能分享另一个版本的restfulapi吗。你知道吗

This question was also asked here in anothe thread


Tags: keyinpyhttps网站localusersappdata
2条回答

你也可以:
-添加错误提示的括号或
-使用python2就像脚本在第一行中所说的#Python 2.7.6

你可以试着加上括号。在python中,3是必需的

print(key + " : " + jData[key])

相关问题 更多 >