1. 导入sqlalchemy模块
2. 建立连接并写入mysql数据库中
3.细节说明详见:jupyter notebook读取及写入MySQL数据库 - 阿璗 - 博客园 (cnblogs.com)