
Python 入門指南 5.0
exercise1014.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # 定義不限個數參數的函數 def do_something(*a): # 印出參數 for i in a: print(i) # 印出結果 do_something(1, 2, 3, 4) do_something("A05", "B33", "E24") # 檔名: exercise1014.py # 說明:《Python入門指南》的練習 # 網站: http://kaiching.org # 作者: 張凱慶 # 時間: 2023 年 8 月 |
