Board logo

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

作者: tonyh    時間: 2019-7-15 09:42     標題: 變數宣告與基本輸出 (一)

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

作者: 黃宇綸    時間: 2019-7-15 11: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)+"!!!")
複製代碼

作者: 蔡沛倫    時間: 2019-7-15 11:01

回復 1# tonyh
  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)+"!!!")
複製代碼

作者: 王宥媗    時間: 2019-7-15 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")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 楊子毅    時間: 2019-7-15 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")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 黃鋐粟    時間: 2019-7-15 11:02

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

作者: 穆玨諺    時間: 2019-7-15 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="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 穆宥臻    時間: 2019-7-15 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="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 黃宇瑄    時間: 2019-7-15 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="!!!\n")
  6. print(str(a)+"~python~"+str(b)+"!!!")
複製代碼

作者: 王禹恆    時間: 2019-7-15 11:06

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

作者: 李宇澤    時間: 2019-7-15 11:07

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)+"!!!")
作者: 曾博宇    時間: 2019-7-15 11:07

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

作者: 王柏諺    時間: 2019-7-15 11:11

本帖最後由 王柏諺 於 2019-7-15 11:15 編輯

a=123
b=456
print(a,"python",b)
print(a,"python",b,sep="~")
print(a,"python",b,sep="~",end="!!!\n")
print(str(a)+"python~"+"!!!")
複製代碼
作者: 孫紹普    時間: 2019-7-15 11:14

  1. a=123
  2. b=456
  3. print(a,"phyton",b)
  4. print(a,"phyton",b,sep="_")
  5. print(a,"phyton",b,sep="_",end="???\n")
  6. print(str(a)+"_phyton_"+str(b)+"???")
複製代碼

作者: 王銘鴻    時間: 2019-7-15 11:14

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

作者: 張彥承    時間: 2019-7-15 11:25

  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://seed.istak.org.tw/) Powered by Discuz! 7.2