参考: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
本文标题:python的print函数打印list
本文链接:https://www.haomeiwen.com/subject/nqxonltx.html
网友评论