- for 语句
例1:
words = ['aaa', 'bbb', 'ccc']
for w in words:
print(w)
例2:
users = {"大白":18, "小黑":10}
for user, age in users.copy().items():
print(user, age)
例1:
words = ['aaa', 'bbb', 'ccc']
for w in words:
print(w)
例2:
users = {"大白":18, "小黑":10}
for user, age in users.copy().items():
print(user, age)