We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
用隐藏的空列表的布尔值才是最 Pythonic 的方法:
if not a: print("list a is empty")
虽然我自己一般用 len(a) == 0
len(a) == 0