会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xunhanliu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
10
下一页
2021年12月15日
关于Pycharm无法识别自己写的包的解决办法
摘要: 1、检查一下当前工程中,指定文件夹下,是不是有一个文件夹A与和文件B同名。 可能是你想引用文件B 的内容,不小心,又新建了一个同名空文件夹A 参见:https://blog.csdn.net/LMFranK/article/details/101161431
阅读全文
posted @ 2021-12-15 10:39 xunhanliu
阅读(782)
评论(0)
推荐(0)
2021年6月29日
fastapi小技巧
摘要: 1、定制文档生成: 参见 fastapi/applycations.py 中的setup. /docs 把所有的路径routes 都包含进去了。参考实现根据tag 实现文档生成。 要先生成docs 需要的openapi_url。(其中get_openapi 是fastapi.openapi.util
阅读全文
posted @ 2021-06-29 16:31 xunhanliu
阅读(258)
评论(0)
推荐(0)
2021年4月8日
vue 后期优化
摘要: 1、小文件分隔: https://blog.csdn.net/qq719756146/article/details/88114520 文中: externals: { 'vue': 'Vue', 'vue-router': 'VueRouter', 'element-ui': 'ELEMENT',
阅读全文
posted @ 2021-04-08 20:24 xunhanliu
阅读(67)
评论(0)
推荐(0)
2021年4月7日
mongo connector笔记
摘要: 配置示例见: https://github.com/yougov/mongo-connector/blob/557cafd4b54c848cd54ef28a258391a154650cb4/tests/test_config.py 注,网上的大部分配置都坑爹。包括 直接把配置写在命令行(全映射,经常
阅读全文
posted @ 2021-04-07 17:16 xunhanliu
阅读(71)
评论(0)
推荐(0)
2021年2月5日
个人实用api
摘要: 单机勿压 1、 查地理位置的经纬度(geocoder) tips: 高德地图api 只能查国内的地址。google 地图使用一段时间会收费。本接口的原理:https://developers-dot-devsite-v2-prod.appspot.com/maps/documentation/uti
阅读全文
posted @ 2021-02-05 16:18 xunhanliu
阅读(234)
评论(0)
推荐(0)
2021年1月25日
vue 的高级用法
摘要: 1、$attrs (属性透传) 用法见:https://blog.csdn.net/weixin_40509884/article/details/105658377 v-bind="$attrs" 场景:你需要对一些组件进行一些封装(爸爸)。你不知道爷爷要传给孙子哪些遗产,所以你需要把所有的遗产都
阅读全文
posted @ 2021-01-25 11:25 xunhanliu
阅读(360)
评论(0)
推荐(0)
2021年1月18日
minio 的部署需要注意的部分
摘要: 文档见: https://docs.min.io/cn/ 注意:不管使用什么样的部署形式,只要把url 映射好,在web端就能正常访问。 api 部分: 1、连接的时候,必须使用域名,不允许使用域名+path 的形式。在同一个主机上部署多个子服务(mino 是其中一个子服务)并且这些子服务公用一个域
阅读全文
posted @ 2021-01-18 17:01 xunhanliu
阅读(7899)
评论(0)
推荐(1)
2020年11月19日
python time format
摘要: 指令 含义 示例 注释 %a 当地工作日的缩写。 Sun, Mon, …, Sat (美国); So, Mo, …, Sa (德国) (1) %A 当地工作日的全名。 Sunday, Monday, …, Saturday (美国); Sonntag, Montag, …, Samstag (德国)
阅读全文
posted @ 2020-11-19 15:38 xunhanliu
阅读(729)
评论(0)
推荐(0)
2020年11月18日
tweepy 使用笔记
摘要: 1、参考:Twitter Standard API rate limits 推特标准接口API的请求频率限制说明 2、api 限制参数的说明: 请求rate_limit_status,下面是返回的部分数据: 以/users/为例: limit : 此接口在下次刷新(15min 一次)前的总可用调用次
阅读全文
posted @ 2020-11-18 11:29 xunhanliu
阅读(479)
评论(0)
推荐(0)
2020年10月20日
docker 启动mongo
摘要: docker run -itd mongo --auth #内部省略了n个参数配置。 注意:如果不加 --auth 的话,是没有密码的! docker exec ... 进入内部后执行 >>> mongo > db.auth(username, passwd) >db.grantRolesToUse
阅读全文
posted @ 2020-10-20 17:21 xunhanliu
阅读(629)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告