返回列表 發帖

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

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

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

TOP

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

TOP

  1. age,name=12,"蔡沛倫"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼
回復 1# tonyh

TOP

  1. age,name=10,"黃宇瑄"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼
Ivy

TOP

  1. age, name=13,"孫紹普"
  2. print("我叫"+name+",今年"+str(age)+"歲")
複製代碼

TOP

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

TOP

  1. a,n=10,"黃宇綸"
  2. print("我叫"+n+",今年"+str(a)+"歲!")
複製代碼
Allen

TOP

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

TOP

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

TOP

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

TOP

age,name=12,"Oscar"
prite("我叫"+name+"今年"+str(age)+"歲!")

TOP

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

TOP

  1. age,name=11,"王柏諺"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

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

TOP

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

TOP

返回列表