摘要: 最近在学习ESP32,需要用到 ESPAsyncWebServer.h库文件,但是目前ESPAsyncWebServer是不支持3以上版本的, 所以需要指定ESP32开发板的版本,这个在arduino ide中非常简单,就是用开发板管理器安装下2版本就行了,比如2.0.8 在Platformio中需 阅读全文
posted @ 2024-12-18 10:54 大排档王师傅 阅读(645) 评论(0) 推荐(0)
摘要: db.collection.update_many({field: {'$exists': False}}, {'$set': {field: ''}}) 阅读全文
posted @ 2021-01-06 09:45 大排档王师傅 阅读(134) 评论(0) 推荐(0)
摘要: for item in db.collection.find({field1: XXX}): db.collcetion.update_one( {'_id': item['_id']}, {'$set': {field3: item[field4]-item[field5]}} )暂时没想到更好的 阅读全文
posted @ 2021-01-06 09:34 大排档王师傅 阅读(606) 评论(0) 推荐(0)
摘要: 写了一个爬虫 发现如下错误 'latin-1' codec can't encode character '\u2026' in position 原来是请求头中文本太长造成的 -_-|| 阅读全文
posted @ 2020-12-07 14:52 大排档王师傅 阅读(289) 评论(0) 推荐(0)
摘要: 旧电脑是32位的,所以只能安装32位版本。 mongo 32位注意事项: 下载地址https://www.mongodb.org/dl/win32/i386 启动服务器时,需要更改storageEngine,因为从MongoDB 3.2 版本开始,WiredTiger成为MongDB默认的Stora 阅读全文
posted @ 2020-12-04 11:14 大排档王师傅 阅读(59) 评论(0) 推荐(0)
摘要: 自己记录下,Dataframe数据需要转成字典,并且保证列标题中不能有 “,”等非string字符。 参考: https://stackoverflow.com/questions/49221550/pandas-insert-a-dataframe-to-mongodb?r=SearchResul 阅读全文
posted @ 2019-06-13 16:50 大排档王师傅 阅读(1398) 评论(0) 推荐(0)