m_char = "abcwqeasdsa" m_list = list(range(1, 11)) m_set = set(range(50, 100, 10)) m_tuple = tuple([m_char, m_list, m_set]) print(m_list) print(m_set) print(m_tuple)
參考資料:
http://docs.python.org/3.3/library/functions.html#func-tuple
http://docs.python.org/3.3/library/functions.html#func-list
http://docs.python.org/3.3/library/functions.html#func-set