← 返回列表

Python3 元组Tuple Len 方法

Python3 元组Tuple Len 方法 #!/usr/bin/python3 tuple1, tuple2 = (123, 'xyz', 'zara'), (456, 'abc') print ("First tuple length : ", len(tuple1)) print ("Second tuple length : ", len(tuple2))

Python3 元组Tuple Len 方法

#!/usr/bin/python3

tuple1, tuple2 = (123, 'xyz', 'zara'), (456, 'abc')
print ("First tuple length : ", len(tuple1))
print ("Second tuple length : ", len(tuple2))

打开资源 ↗

交流与评论