Discuss / Python / 求解

求解

Topic source

print("100 + 200 =",100+200) ('100 + 200 =', 300) Press any key to continue . . .

如上所示,打印出来的会有括号、引号和逗号。望大神指点迷津。谢谢

佳铭2010

#2 Created at ... [Delete] [Delete and Lock User]

print('100 + 200 =',100+200)

是单引号,不是双引号。

你的版本问题?print("100+200=",100+200)结果是对的

Coding君

#4 Created at ... [Delete] [Delete and Lock User]

你怕是用的py2.7的版本哟


  • 1

Reply