返回列表 發帖
a=123
b=456
print(a,b,"python")
print(a,b,"python",sep="~")
print(a,b,"python",sep="~",end="!!!")
print(a,b,"python",sep="~",end="!!!")

TOP

回復 1# 鄭繼威

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)+"!!")
print(str(a)+"~python~"+str(b)+"!")

TOP

回復 1# 鄭繼威


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)+"!!!")

TOP

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

TOP

也可以...
a = 123
b = 456
c = "python"
print(a,c,b)
print(a,c,b,sep="~")
print(a,c,b,sep="~",end="!!!\n")
print(a,c,b,sep="~",end="!!!")

TOP

回復 1# 鄭繼威


    print("我叫林彥翰")+("今年十歲")

TOP

a=123
b=456
print(a, "python", b ,sep=" ")
print(a, "python", b ,sep="-")
print(a, "python", b ,sep="-", end="!!!" "\n")
print(a, "python", b ,sep="-", end="!!!")

TOP

返回列表