我的代碼看起來像這樣經過:當使用sys.stdout.write函數, 「無」 看來我寫的東西
import sys
print "What are his odds of hitting?", (25.0/10.0) * 8 + 65, sys.stdout.write('%')
當我在PowerShell中(Windows 7)中運行它,我得到這個:
What are his odds of hitting? 85.0%None
我想是這樣的:
What are his odds of hitting? 85.0%
爲什麼我得到了「無」,在它的結束?我如何阻止這種情況發生?