返回列表 發帖
a=114.0
b=514
print(a)
a=114
print(a,b)
print(str(a)+str(b))
print(a,b,sep="a")
c=a+b
print(c,end=" ")
c=str(a)+str(b)
print(c)

114.0
114 514
114514
114a514
628 114514

TOP

a=114.0
b=514
print(a)
a=114
print(a,b)
print(str(a)+str(b))
print(a,b,sep="a")
c=a+b
print(c,end=" ")
c=str(a)+str(b)
print(c)

114.0
114 514
114514
114a514
628 114514

TOP

  1. a=123
  2. b=1234567
  3. print(a,"+4567=",b)
  4. print(a,"pyhtohn",b,sep="-")
  5. print(a,"pyhtohn",b,end="|||\n")
  6. print(str(a)+"~~pyyyyyython~~~"+str(b)+"ffff")
複製代碼

TOP

  1. # -*- coding: utf-8 -*-
  2. """
  3. Spyder Editor

  4. This is a temporary script file.
  5. """
  6. a=369
  7. b="sub"
  8. c=12.3
  9. d="daptoper"
  10. print(a,b,d,sep="@")
複製代碼

TOP

返回列表