Board logo

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

作者: tonyh    時間: 2022-1-26 09:58     標題: 變數宣告與基本輸出 (一)

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

作者: tonyh    時間: 2022-1-26 10:56

  1. # Ctrl + Alt + 向下鍵    單行向下複製

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

作者: 富溢    時間: 2022-1-26 10:58

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

作者: 鄭繼威    時間: 2022-1-26 11:03

  1. print(100,"python",60)

  2. print(100,"python",60, sep="@")
  3. print(100,"python",60, sep="noQQ!", end='')
  4. print(str(100)+"python"+str(60), sep="@")
複製代碼

作者: 黃裕恩    時間: 2022-1-26 11:05

本帖最後由 tonyh 於 2022-1-26 11:16 編輯
  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)+"!!!")
複製代碼

作者: 胡孟涵    時間: 2022-1-26 11:07

本帖最後由 胡孟涵 於 2022-1-26 11:08 編輯
  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)+"!!!")
複製代碼

作者: 張仲言    時間: 2022-1-26 11:09

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

作者: 林柏勳    時間: 2022-1-26 11:09

  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(str(a),"python",str(b),sep="~",end="!!!")
複製代碼

作者: 林柏諺    時間: 2022-1-26 11:10

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

作者: 林柏勳    時間: 2022-1-26 11:14

  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(str(a)+"python"+str(b)+sep="~"+end="!!!")
複製代碼

作者: 張效騫    時間: 2022-1-26 11:16

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

作者: 尤宸于    時間: 2022-1-26 11:37

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

作者: 張效騫    時間: 2022-1-26 11:55

  1. [code]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)+"!!!")
  7. +
複製代碼
[/code]




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