Board logo

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

作者: tonyh    時間: 2020-8-13 09: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)+"!!!")
複製代碼

作者: 余宜儒    時間: 2020-8-13 10:33

  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)+"!!!")
複製代碼

作者: 龔治銓    時間: 2020-8-13 10:34

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

作者: 葉峻宇    時間: 2020-8-13 10:35

本帖最後由 tonyh 於 2020-8-13 10:39 編輯
  1. a=123
  2. b=456
  3. print(a,"python",b)   
  4. print(a,"pathon",b,sep="~")
  5. print(a,"patyon",b,sep="~",end="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 葉峻宇    時間: 2020-8-13 10:38

  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)+"!!!")
複製代碼

作者: 王以晟    時間: 2020-8-13 10:41

a=123
b=456
print(a,"python",b)
print(a,"python",b,sep="~")
print(a,"python",b,sep="~",end="!!!")
print(str(a)+"~python~"+str(b)+"!!!")
  1. [/color]
複製代碼

作者: 田菀蘋    時間: 2020-8-13 10:44

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





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