摘要: 1. if语句在行内 print('Hello' if True else 'World') Hello 2. 数值比较 x = 2 if 3>x>1: print(x) if 1<x>0: print(x) 2 2 3. 迭代工具 和collections库相似,还有一个库itertools,能高 阅读全文
posted @ 2019-03-01 16:30 做梦当财神 阅读(277) 评论(0) 推荐(0)