Python3 tuple 函数
Python 3 教程
· 2019-02-05 09:43:14
描述
tuple 函数将列表转换为元组。。
语法
以下是 tuple 的语法:
tuple( seq )
参数
- seq -- 要转换为元组的序列。
返回值
返回元组。
实例
以下展示了使用 tuple 的实例:
实例
>>>list1= ['Google', 'Taobao', 'Codercto', 'Baidu']
>>> tuple1=tuple(list1)
>>> tuple1
('Google', 'Taobao', 'Codercto', 'Baidu')
点击查看所有 Python 3 教程 文章: https://www.codercto.com/courses/l/10.html
Approximation Algorithms
Vijay V. Vazirani / Springer / 2001-07-02 / USD 54.95
'This book covers the dominant theoretical approaches to the approximate solution of hard combinatorial optimization and enumeration problems. It contains elegant combinatorial theory, useful and inte......一起来看看 《Approximation Algorithms》 这本书的介绍吧!