01 2022 档案
摘要:1.第一天 华为的网络系统成为 VRP(Versatile Routing Platform)通用路由平台 系统分为4层视图 用户视图 系统视图 接口视图 协议视图 配置consol 密码 进入系统试图 system-view 进入console接口 user-interface consol 0
阅读全文
摘要:import pymysql connect=pymysql.connect(host="172.7.200.2",port=3306,user="root",passwd="123",db="mysql",charset="utf8") cursor=connect.cursor(pymysql.
阅读全文
摘要:简单的后台管理 1登录注册 2 老师 班级 学员 insert update delete 1.设计表结构 # 班级表 class CLASS(models.Model): caption = models.CharField(max_length=32) # 学生表 class STUDENT(m
阅读全文
摘要:import smtplib from email.mime.text import MIMEText from email.utils import formataddr # msg =MIMEText('正文:来自python的邮件','plain','utf-8') msg['From'] =
阅读全文
摘要:目录快速开始启用httpsharbor高可用 快速开始 harbor 是vmware 公司的开源的镜像仓库,依赖docker环境和docker-compose编排工具 下载软件包 使用过2.2.0/2.3.0/2.8.3/2.9.5版本 version=v2.9.5 wget https://git
阅读全文
摘要:docker-compose docker-compose 是docker官方的单机编排工具,适用于多个容器配合工作的场景,Compose项目由Python编写。实际上调用了Docker服务提供的API来对容器进管理 。 时隔至今我再次使用docker-compose 时自v1.26 后官方已经使用
阅读全文
摘要:Dockerfile Dockerfile 是包含一条条指令的文本文件,用于构建docker镜像 基本原则: 选择较小的基础镜像,debian:wheezy 或 debian:jessie 清理编译生成的临时文件、安装包等临时文件 安装软件指定版本号 dockerfile 书写在一个干净的目录下 我
阅读全文
摘要:import threading import queue import os q= queue.Queue() for i in range(1,255): q.put(i) try: f = open('1.txt','a') def fun01(num): result=os.popen('p
阅读全文
摘要:#!/usr/bin/python # -*- coding: UTF-8 -*- import calendar cal = calendar.month(2016, 1) print "以下输出2016年1月份的日历:" print cal
阅读全文
摘要:import re re.findall() 查询到所有符合的 re.search re.match re.compile flags 修改正则的匹配规则 特殊符号 "." 除换行符外的任意字符 "^" 匹配开头 "$" 匹配结尾 "*" 重复前一个字符0或尽可能多次 "+" 重复前一个字符1或尽可
阅读全文
摘要:import logging https://www.cnblogs.com/yuanchenqi/articles/5732581.html https://www.cnblogs.com/qianyuliang/articles/7234217.html#top import logging #
阅读全文
摘要:import hashlib >>> ob=hashlib.md5(b'123') >>> ob.update(b'123') >>> ob.hexdigest() '4297f44b13955235245b2497399d7a93'
阅读全文
摘要:import sys sys.argv[0] sys.stdin.readline() sys.stdout.write() sys.stderr sys.exit() getdefaultencoding() sys.path ==>echo $PATH sys.platform ==>平台信息w
阅读全文