摘要:
《Python for Beginners》为LearnStreet上的Python入门课程。本节主要学习内容为Lists and Tuples。Lesson 6 Lists and Tuples1. Length of List计算List变量的长度。1 def run(var):2 #return your code here3 return len(var)4 5 #This is just for you to see what happens when the function is called6 print run([1,2,3,4,5])输出结果:52. Rem... 阅读全文