[n for n in [1,2,3,4] if n%2]
try:
user.name
except AttributeError:
pass
[1,2,4].sort()
def compute_cubes():
return [n**3 for n in range(1000)]
if var:
pass
if not names_list:
pass
dict(zip([‘a‘,‘b‘,‘c‘],[1,2,3]))
原文:https://www.cnblogs.com/raisok/p/12659650.html