三目运算:x if x<y else y
break会跳过for、while的else模块
迭代:i=iter(j),异常:StopIteration
生成器:yield
列表解析:[i for i in j if i],sum([len(s.strip()) for s in open('test.txt')]),生成器表达式:(i for i in j if i),sum((len(s.strip()) for s in open('test.txt')))
分割:split()
三目运算:x if x<y else y
break会跳过for、while的else模块
迭代:i=iter(j),异常:StopIteration
生成器:yield
列表解析:[i for i in j if i],sum([len(s.strip()) for s in open('test.txt')]),生成器表达式:(i for i in j if i),sum((len(s.strip()) for s in open('test.txt')))
分割:split()