Python 元组详解
# Creating a tuple using parenthesesmy_tuple = (1, 2, 'hello', 3.14)# Using the tuple constructoranother_tuple = tuple([4, 5, 6])
# Creating a tuple using parenthesesmy_tuple = (1, 2, 'hello', 3.14)# Using the tuple constructoranother_tuple = tuple([4, 5, 6])