对python很陌生,试试这个 -
def newlines():
print()
print()
print()
question = "Which online Course you have signed up, dude?"
response = "Good Luck to you, dude!"
print(question), newlines(), input(), newlines(), print(response)
在 Python 3.2.* 中,输出是这样的
Which online Course you have signed up, dude?
Nothing
Good Luck to you, dude!
(None, None, "Nothing", None) # Where this output is coming from ?
python 3.3 beta也不会发生这种情况