立即学习:https://edu.csdn.net/course/play/26755/340118?utm_source=blogtoedu
1.用字符分隔输出的字符串
print(”a","b",sep=",")
2.不换行
print("hello",end=" ")
print("world")
hello world
3.格式化
s='123'
x=len(s)
print("the length of %s is %d" %(s,x)
立即学习:https://edu.csdn.net/course/play/26755/340118?utm_source=blogtoedu
1.用字符分隔输出的字符串
print(”a","b",sep=",")
2.不换行
print("hello",end=" ")
print("world")
hello world
3.格式化
s='123'
x=len(s)
print("the length of %s is %d" %(s,x)