摘要: 多重赋值技巧是一种快捷方式,让你在一行代码中,用列表中的值为多个变量赋值。 示例: #传统赋值cat = ['lili','lilei','hanmeimei']size = cat[0]color = cat[1]fat = cat[2]print(cat)print(size)#多重赋值hi,h 阅读全文
posted @ 2020-03-22 22:08 孤云落日-夕阳情 阅读(720) 评论(0) 推荐(0)