上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 39 下一页
摘要: 最好不要用 列表 作为参数,否则容易得到非预期的结果,如下代码。 def add(a, b): a += b return a class Company: def __init__(self, name, staffs=[]): self.name = name self.staffs = sta 阅读全文
posted @ 2021-04-02 17:10 坚强的小蚂蚁 阅读(69) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/appleyuchi/article/details/105733270 有时间多看几遍,不难理解 例子1 class Role: def walk(self): print('走') class RunMixin: def run(self): p 阅读全文
posted @ 2021-04-02 16:55 坚强的小蚂蚁 阅读(126) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/aransam/article/details/80929460 1. 两个基类1)APIViewrest_framework.views.APIView APIView是REST framework提供的所有视图的基类,继承自Django的View 阅读全文
posted @ 2021-04-01 18:40 坚强的小蚂蚁 阅读(117) 评论(0) 推荐(0)
摘要: 目标:导出文本中的镜像,并以后缀+tar命名保存镜像,比如emqttd:v1.4.1.tar 1.txt image: registry.cn-hangzhou.aliyuncs.com/elements/captcha:v1.3.7 image: registry.cn-hangzhou.aliy 阅读全文
posted @ 2021-03-31 11:46 坚强的小蚂蚁 阅读(276) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/weixin_45331368/article/details/100936877 阅读全文
posted @ 2021-03-09 14:22 坚强的小蚂蚁 阅读(53) 评论(0) 推荐(0)
摘要: influxDB-查询操作 转自:https://www.cnblogs.com/Bluebells/p/14120368.html 1 # 综合使用 2 书写顺序 3 select distinct * from '表名' where '限制条件' group by '分组依据' having ' 阅读全文
posted @ 2021-03-05 18:04 坚强的小蚂蚁 阅读(1351) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/trblog/p/14690908.html 一. 安装方式 1. 使用snapd进行安装 https://blog.csdn.net/weixin_43931358/article/details/112525075 报错无法更新证书 ./ce 阅读全文
posted @ 2020-12-14 10:23 坚强的小蚂蚁 阅读(396) 评论(0) 推荐(0)
摘要: def recursive_test(n): print('数字:',n) if n==0: print('结束') else: recursive_test(n-1) print('number:',n) #看这里 就加了这一句 recursive_test(3) 输出结果为 数字: 3 数字: 阅读全文
posted @ 2020-11-27 11:52 坚强的小蚂蚁 阅读(548) 评论(0) 推荐(0)
摘要: ubuntu安装phantomjs https://blog.csdn.net/bobozai86/article/details/100056503 下载地址 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux 阅读全文
posted @ 2020-11-25 09:37 坚强的小蚂蚁 阅读(615) 评论(0) 推荐(0)
摘要: excel.py如下 # encoding:utf-8 from bson.objectid import ObjectId import pymongo import time import xlwt from operator import itemgetter import collectio 阅读全文
posted @ 2020-11-24 15:17 坚强的小蚂蚁 阅读(134) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 39 下一页