摘要:
>>> test1 = ("aaa","bbb","ccc","ddd","eee","fff","ggg") >>> type(test1) <class 'tuple'> >>> test2 = test1[:4] >>> test2 ('aaa', 'bbb', 'ccc', 'ddd') 阅读全文
摘要:
>>> test1 = [3,5,1,9,2,7,4] >>> type(test1) <class 'list'> >>> len(test1) 7 >>> min(test1) 1 >>> max(test1) 9 >>> sum(test1) 31 >>> sum(test1) / len(t 阅读全文