小册名称:Python合辑1-Python语言基础
print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
*
print('hello world!') # hello world!print(1, 2, 3, 4) # 默认输出时用空格分隔# 输出 1 2 3 4print(1, 2, 3, 4, sep=',') # 用sep参数指定符号用于输出时分隔值# 输出1,2,3,4
print('hello world!') # hello world!
print(1, 2, 3, 4) # 默认输出时用空格分隔
# 输出 1 2 3 4
print(1, 2, 3, 4, sep=',') # 用sep参数指定符号用于输出时分隔值
# 输出1,2,3,4