上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 38 下一页
摘要: 1. jQuery的serialize()方法通过序列化表单值,创建URL编码文本字符串,我们就可以选择一个或多个表单元素,也可以直接选择form将其序列化,如:(name 属性需要填写) <form id="form1"> <input type="hidden" value ="${topicI 阅读全文
posted @ 2021-04-07 11:07 坚强的小蚂蚁 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 最好不要用 列表 作为参数,否则容易得到非预期的结果,如下代码。 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 坚强的小蚂蚁 阅读(55) 评论(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 坚强的小蚂蚁 阅读(109) 评论(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 坚强的小蚂蚁 阅读(109) 评论(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 坚强的小蚂蚁 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/weixin_45331368/article/details/100936877 阅读全文
posted @ 2021-03-09 14:22 坚强的小蚂蚁 阅读(45) 评论(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 坚强的小蚂蚁 阅读(922) 评论(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 坚强的小蚂蚁 阅读(352) 评论(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 坚强的小蚂蚁 阅读(504) 评论(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 坚强的小蚂蚁 阅读(551) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 38 下一页