mysql -u [username]-p --default-character-set=utf8 [database_name]
root@ab66508d9441:/# mysql -uroot -p123456 --default-character-set=utf8 tingshu_album
mysql: [Warning]Using a password on the command line interface can be insecure.
Reading table information for completion oftableandcolumn names
You can turn off this feature to get a quicker startup with-A
Welcome to the MySQL monitor. Commands endwith;or \g.
Your MySQL connection id is80
Server version: 8.0.27 MySQL Community Server - GPL
Copyright (c)2000,2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type'help;'or'\h'for help.Type'\c'to clear the current input statement.
person {"name": "John", "age": 30, "city": "New York"}
print("最开始的信息:",person)def process_person_info(person):# 检查对象中是否包含所有必要的键if name in person and age in person …