Board logo

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

作者: tonyh    時間: 2020-7-4 13:50     標題: 變數宣告與基本輸出 (一)

  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-7-4 14:47

  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-7-4 15:00

  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-7-11 13:56

  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-24 18:49

  1. a=12
  2. b=13
  3. print(a,"pig",b)
  4. print(a,"pig",b,sep="--")
  5. print(a,"pig",b,sep="--",end="///\n")
  6. print(str(a)+"--pig--"+str(b)+"///")
複製代碼

作者: 吳孟修    時間: 2020-9-5 13:17

  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-9-5 13:18

  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-9-5 13:22

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





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