python的print函数打印list
2021-10-06 本文已影响0人
Ribosome_He
参考:https://blog.csdn.net/wsx_9999/article/details/103055039
list=["A","b","c"]
print(list) 可以实现拆包,输出》》A b c,不需要遍历list。
print(list,sep="-") 拆包有用sep参数分隔,输出》》A-b-c
参考:https://blog.csdn.net/wsx_9999/article/details/103055039
list=["A","b","c"]
print(list) 可以实现拆包,输出》》A b c,不需要遍历list。
print(list,sep="-") 拆包有用sep参数分隔,输出》》A-b-c