如果想要輸入浮點數,那麼應該使用:float(raw_input(“Enter x:”))。 在最新的Python 版本,可以使用input() 函數來代替: #!/usr/bin/env python x = int(input(" ...
確定! 回上一頁