Python-100-Days/公开课/文档/年薪50W+的Python程序员如何写代码/code/Python/opencourse/part02/idiom01.py

10 lines
283 B
Python

name = 'jackfrued'
fruits = ['apple', 'orange', 'grape']
owners = {'name': '骆昊', 'age': 40, 'gender': True}
# if name != '' and len(fruits) > 0 and len(owners.keys()) > 0:
# print('Jackfrued love fruits.')
if name and fruits and owners:
print('Jackfrued love fruits.')