返回列表 發帖

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

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

age,name=18,"Tony"
print("我叫"+name+"今年"+str(age)+"歲!")

TOP

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

TOP

本帖最後由 林家代 於 2020-7-27 14:57 編輯
  1. age,name=13,"Diane"
  2. print("我叫"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

  1. age,name=17,"Rex"
  2. print("我的名字是"+name+"今年"+str(age)+"歲!")
複製代碼

TOP

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

TOP

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

TOP

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

TOP

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

TOP

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

TOP

本帖最後由 楊書華 於 2020-7-27 11:30 編輯
  1. age,name=176,"Erial"
  2. print("我叫"+name+","+"今年"+str(age)+"歲")
複製代碼
._.

TOP

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

TOP

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

TOP

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

TOP

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

TOP

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

TOP

返回列表