随笔分类 -  Python

摘要:REDASH_BASE_PATH=/opt/redash install_docker(){ # Install Docker sudo apt-get update sudo apt-get -yy install apt-transport-https ca-certificates curl 阅读全文
posted @ 2021-11-21 17:45 yourwilliam 阅读(165) 评论(0) 推荐(0)
摘要:每次写 Python 都会忘记该怎么写,最后只能去 Stack Overflow 查?我也一样。时间一长,这让人厌倦。 这 15 个 Python 技巧和窍门,可以帮你提高效率。 1. 交换值 2. 字符串列表合并为一个字符串 3. 将字符串拆分为子字符串列表 4. 通过数字填充初始化列表 5. 字 阅读全文
posted @ 2021-11-21 17:45 yourwilliam 阅读(99) 评论(0) 推荐(0)
摘要:Setup Environment This installation of Redash has the following dependencies Installed and running Ubuntu 18.04 LTS server Docker Engine Docker compos 阅读全文
posted @ 2021-11-21 17:44 yourwilliam 阅读(90) 评论(0) 推荐(0)
摘要:##CentOS 脚本 这个是整合了他的Ubuntu脚本和老板的centos脚本出来的 阅读全文
posted @ 2021-11-21 17:43 yourwilliam 阅读(139) 评论(0) 推荐(0)
摘要:##格式化 后续所有的Rest请求都采用如下请求模式 1. token token由于是单独的接口,并使用原生的django-rest-framework接口,所以采用如下的返回模式 2. 调用失败情况 3. 调用成功情况 ##配置方式 utils.py setting.py中的配置 调用中的配置: 阅读全文
posted @ 2021-11-21 17:42 yourwilliam 阅读(106) 评论(0) 推荐(0)