my_dict ={'python':99,'java':88,'c':77,'c++':66}for key in my_dict:print(f"key:{key}对应的value:{my_dict[key]}")
案例,将level为1的学生升一级,并将其python分数加10
my_dict_dict ={"jay":{"java":99,"python":88,"c":77,"level":1},"jake":{"java":98,"python":87,"c":76,"level":2},"zhou":{"java":97,"python":86,"c":75,"level":1},"Hua":{"java":99,"python":88,"c":77,"level":3}}print(f"更新前:{my_dict_dict}")for name in my_dict_dict:if my_dict_dict[name]["level"]==1:
my_dict_dict[name]["level"]+=1
my_dict_dict[name]["python"]+=10print(f"更新后:{my_dict_dict}")
利用HeyGen的服务可以生成有趣的Talkingphoto,方法有二:
1、访问HeyGen - AI Video Generator 网站,登录后即可根据提示或者案例生成talkingphoto
2、是使用HeyGen的 Discord机器人:https://discord.com/channels/1…