例如 x =“你好”。我可以不做 if x != "hello" 而不是执行 assert x == "hello" 吗?使用断言更Pythonic吗?
python assert
assert ×1
python ×1