Board logo

標題: 變數宣告與基本輸出 (一) [打印本頁]

作者: tonyh    時間: 2021-1-28 10:11     標題: 變數宣告與基本輸出 (一)

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 王旋兆    時間: 2021-1-28 10:54

本帖最後由 王旋兆 於 2021-1-28 10:59 編輯
  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 謝苙豪    時間: 2021-1-28 10:59

a=123
b=456
print(a,"python",b)
print(a,"python",b,sep="~")
print(a,"python",b,sep="~",end="!!!\n")
print(str(a)+"~python~"+str(b)+"!!!")
作者: 賴聿均    時間: 2021-1-28 11:01

  1. a=123
  2. b=345
  3. print(a,"python",b,sep="~",end="!!!\n")
  4. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 方黃生    時間: 2021-1-28 11:01

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep=":")
  5. print(a,"python",b,sep=":",end="???|n")
複製代碼

作者: 林楷喆    時間: 2021-1-28 11:03

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!")
複製代碼

作者: 陳宥銘    時間: 2021-1-28 11:08

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sed="~")
  5. print(a,"python",b,sed="~",end="!!!/n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 何若晴    時間: 2021-1-28 11:15

  1. a=123
  2. b=456
  3. print(a,"python",b)
  4. print(a,"python",b,sep="~")
  5. print(a,"python",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 方黃生    時間: 2021-1-28 11:57

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





歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://istak.org.tw/seed/) Powered by Discuz! 7.2