我已经写了如下的Python代码:打印输出没有显示正确的格式
magicNumber = 25
for n in range(100):
if n is magicNumber:
print(n, " is the magic number")
break
else:
print(n)
输出的最后一行的格式如下面显示:
(25, ' is the magic number')
请让我知道我能做些什么,以具有的last line
的output
为:
25 is the magic number
你使用python 2不3 – abccd
如果[R使用python 2删除括号()。 – shiva