很新的蟒蛇,尝试这一点 -为什么在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 ?
而且这是不是与蟒蛇3.3测试版
+1你应该这样写,不管其他答案中的信息如何。 ','不是Python中的语句分隔符。如果你想按顺序做几件事,那么按顺序做几件事。 – 2012-08-04 20:36:00