函數及裝飾器

1、函數  # 定義函數  # 如果不主動調用函數,函數是不會執行的  def say_hello():      print 'hello1'      print 'hello2'      print 'hello3'  # 函數的調用  say_hello()  def sum_2_sum():      """對兩個數字的求和"""      num1 = 20      num2 =
相關文章
相關標籤/搜索