标签:ros 生成 mini nis 知识 turn 等价 pre font
#__author__:Administrator}
#data: 2017/11/28
a = [x for x in range(10)]
print(a)
a = [x*2 for x in range(10)]
print(a)
a = [x*x for x in range(10)]
print(a)
def f(n):
return n**3
a = [f(x) for x in range(10)]
print(a)
#知识点
t=(123,‘b‘)
a,b=t#等价于a=t【0】,b=【1】
print(a)
print(b)
标签:ros 生成 mini nis 知识 turn 等价 pre font
原文地址:http://www.cnblogs.com/xuxu-learn-python/p/7943745.html