返回列表 發帖

變數宣告與基本輸出 (一)

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

TOP

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]
複製代碼

TOP

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

TOP

本帖最後由 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)+"!!!")
複製代碼

TOP

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

TOP

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

TOP

返回列表