很新的蟒蛇,嘗試這一點 -爲什麼在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