其他分享
首页 > 其他分享> > 列表演示

列表演示

作者:互联网

name_list = ["zhangsan", "lisi", "wangwu"]
print(name_list)

for name in name_list:
print(name)

info_tuple = ("a", )
print(info_tuple)

info = ("小张", 18)
print("%s的年龄是%d" % info)

info1 = list(info)
print(info1)

info2 = tuple(info1)
print(info2)

标签:info,演示,name,tuple,list,列表,info1,print
来源: https://www.cnblogs.com/ShanXie/p/13590452.html