Python Tuple cmp() 方法 Python 删除元组 Python Tuple len() 方法 Python Tuple cmp() 方法 #!/usr/bin/python tuple1, tuple2 = (123, 'xyz'), (456, 'abc') print cmp(tuple1, tuple2) print cmp(tuple2, tuple1) tuple3 = tuple2 + (786,); print cmp(tuple2, tuple3) Python 删除元组 Python Tuple len() 方法