为什么是错的,检查很多遍了
Traceback (most recent call last):File "<pyshell#37>", line 1, in <module>
print( "我每天爱你三千遍!" * 3000)
TypeError: 'str' object is not callable
>>> print("我每天爱你三千遍!" * 3000 )
Traceback (most recent call last):
File "<pyshell#38>", line 1, in <module>
print("我每天爱你三千遍!" * 3000 )
TypeError: 'str' object is not callable
>>> print('我每天爱你三千遍!' * 3000 )
Traceback (most recent call last):
File "<pyshell#39>", line 1, in <module>
print('我每天爱你三千遍!' * 3000 )
TypeError: 'str' object is not callable
>>>
>>> print('我每天爱你三千遍!' * 3000 )
Traceback (most recent call last):
File "<pyshell#41>", line 1, in <module>
print('我每天爱你三千遍!' * 3000 )
TypeError: 'str' object is not callable
>>> print("爱你三千遍" * 3000)
SyntaxError: invalid character in identifier
>>> print("爱你三千遍" * 3000 )
SyntaxError: invalid character in identifier
>>>
>>> print("爱你三千遍!" * 3000 )
SyntaxError: invalid character in identifier
>>> print("爱你三千遍!" * 3000 )
SyntaxError: invalid character in identifier
>>> print("爱你三千遍!"*3000 )
SyntaxError: invalid character in identifier
>>> print("爱你三千遍!" * 3000 )
SyntaxError: invalid character in identifier
>>> c
求解 print的右括号打成中文的了
改成这样
print("爱你三千遍!" * 3000) print("爱你三千遍!",end='\n' * 3000)
注意一下,运行这个程序你的电脑可能会死机
页:
[1]