📜  一行 if 语句 python 没有 else - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:13.369000             🧑  作者: Mango

代码示例2
>>> myList = []
>>> False and myList.append('myString')
False
>>> myList
[]
>>> True and myList.append('myString')
>>> myList
['myString']