上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 38 下一页
摘要: 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 坚强的小蚂蚁 阅读(121) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/sanduzxcvbnm/p/13367071.html 一. 让两个不在同一网段的容器网络互通 # 自定义一个网络 docker network create --driver bridge --subnet 192.168.0.0/16 --gat 阅读全文
posted @ 2020-11-13 16:15 坚强的小蚂蚁 阅读(400) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qinwenping/article/details/5116861 ①:运行virtualbox, 管理->虚拟介质管理->虚拟硬盘->注册->打开你的.vdi文件->确定; ②:控制->新建->下一步->填入虚拟电脑名称和系统类型->下一步->下一步- 阅读全文
posted @ 2020-11-11 11:17 坚强的小蚂蚁 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 一个做ftp的docker-compose文件 version: "2.0" services: ftp-server: image: fauria/vsftpd container_name: ftp-test1 ports: - "2340:20" - "2341:21" - "21100-21 阅读全文
posted @ 2020-11-10 13:54 坚强的小蚂蚁 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.cnblogs.com/ct20150811/p/9431976.html https://www.cnblogs.com/maifengqiang/p/3863168.html https://www.jianshu.com/p/d9162722f189 tcpdu 阅读全文
posted @ 2020-11-04 16:29 坚强的小蚂蚁 阅读(114) 评论(0) 推荐(0) 编辑
摘要: nginx的default.nginx中添加 location ~ ^/mqtt { proxy_pass http://emqttd:8083; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_heade 阅读全文
posted @ 2020-09-15 17:06 坚强的小蚂蚁 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 脚本比较粗糙,可根据这个思想去改写自己的脚本 这里使用Python脚本来实现,熟悉subprocess.Popen, os.popen docker save 镜像名(不需要加tag) -o tarname.tar import re import os from subprocess import 阅读全文
posted @ 2020-04-27 17:27 坚强的小蚂蚁 阅读(2517) 评论(0) 推荐(0) 编辑
摘要: 一个类实例也可以变成一个可调用对象,只需要实现一个特殊方法__call__() class People: def __init__(self, name, age): self.name = name self.age = age def __str__(self): return "his na 阅读全文
posted @ 2020-04-15 14:07 坚强的小蚂蚁 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 局部变量在函数执行完成后就被销毁了。那么如果在line函数中使用了line_conf的变量,当line_conf函数执行完成后,在全局环境中的line函数还能使用line_conf中的变量吗? def line_conf(): b = 15 def line(x): return 2*x + b r 阅读全文
posted @ 2020-04-14 14:21 坚强的小蚂蚁 阅读(123) 评论(0) 推荐(0) 编辑
摘要: model如下 class Publisher(models.Model): name = models.CharField(max_length=30) address = models.CharField(max_length=50) website = models.URLField() cl 阅读全文
posted @ 2020-04-01 14:20 坚强的小蚂蚁 阅读(302) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 38 下一页