Python 定義函式使用def 關鍵字,一般格式如下: ... #!/usr/bin/python3 # 定義函式 def printme( str ): # 列印任何傳入的字串 print (str) return # 呼叫函式 ...
確定! 回上一頁