返回列表 發帖

變數宣告與基本輸出 (二)

  1. age,name=18,"Tony"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

  1. age,name=14,"王建葦"
  2. print("我叫"+name+"今年"+str(age)+"歲")
複製代碼

TOP

  1. age,name=18,"Tony"
  2. print("我叫+name+"今年"+str(age)+""
複製代碼

TOP

  1. age,name=18,"tony"
  2. print("我叫"+str(name)+"今年"+str(age)+"歲")
複製代碼

TOP

  1. age,name=18,"Tony"
  2. print("我叫"+name+",今年"+str(age)+"歲!")
複製代碼

TOP

返回列表