摘要: 一、元组转换 数字 tu = (1) tu1 = (1,) print(tu,type(tu)) print(tu1,type(tu1)) 执行输出: 1 <class 'int'>(1,) <class 'tuple'> 字符串 tu = ('lao') tu1 = ('lao',) print( 阅读全文
posted @ 2018-03-26 15:05 肖祥 阅读(851) 评论(3) 推荐(0) 编辑