2018年10月21日
摘要: 三元函数: a,b,c = 1,2,3 d = a if a>b else c print(d) #list 用法: lst = [1,2,3,4,5] print(lst[0:3]) print(lst[-1]) print(lst[-3:]) #从右边往左数4位然后向右输出 print(lst[ 阅读全文
posted @ 2018-10-21 08:25 FakeZIo 阅读(149) 评论(0) 推荐(0)