python - 函数(二)

## 4. 传递列表 ``` def greet_users(names): """向列表中的每位用户发出问候。""" for name in names: msg = f"Hello, {name.title()}" print(msg) usernames = ['hanks', 'jackso
posted @ 2023-07-08 23:34  钱塘江畔  阅读(3)  评论(0编辑  收藏  举报