上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: import pymysql connect=pymysql.connect(host="172.7.200.2",port=3306,user="root",passwd="123",db="mysql",charset="utf8") cursor=connect.cursor(pymysql. 阅读全文
posted @ 2022-01-12 22:05 mingtian是吧 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 简单的后台管理 1登录注册 2 老师 班级 学员 insert update delete 1.设计表结构 # 班级表 class CLASS(models.Model): caption = models.CharField(max_length=32) # 学生表 class STUDENT(m 阅读全文
posted @ 2022-01-12 21:52 mingtian是吧 阅读(18) 评论(0) 推荐(0) 编辑
摘要: import smtplib from email.mime.text import MIMEText from email.utils import formataddr # msg =MIMEText('正文:来自python的邮件','plain','utf-8') msg['From'] = 阅读全文
posted @ 2022-01-12 21:01 mingtian是吧 阅读(48) 评论(0) 推荐(0) 编辑
摘要: [TOC] ### 快速开始 harbor 是vmware 公司的开源的镜像仓库,依赖docker环境和docker-compose编排工具 1. 下载软件包 > 使用过2.2.0/2.3.0/2.8.3版本 ```bash version=v2.8.3 ``` ```bash wget https 阅读全文
posted @ 2022-01-12 20:49 mingtian是吧 阅读(308) 评论(0) 推荐(0) 编辑
摘要: docker-compose docker-compose 是docker官方的单机编排工具,适用于多个容器配合工作的场景,Compose项目由Python编写。实际上调用了Docker服务提供的API来对容器进管理 。 时隔至今我再次使用docker-compose 时自v1.26 后官方已经使用 阅读全文
posted @ 2022-01-12 20:37 mingtian是吧 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Dockerfile Dockerfile 是包含一条条指令的文本文件,用于构建docker镜像 基本原则: 选择较小的基础镜像,debian:wheezy 或 debian:jessie 清理编译生成的临时文件、安装包等临时文件 安装软件指定版本号 dockerfile 书写在一个干净的目录下 我 阅读全文
posted @ 2022-01-12 20:36 mingtian是吧 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-01-12 14:48 mingtian是吧 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # -*- coding: UTF-8 -*- import calendar cal = calendar.month(2016, 1) print "以下输出2016年1月份的日历:" print cal 阅读全文
posted @ 2022-01-12 14:43 mingtian是吧 阅读(9) 评论(0) 推荐(0) 编辑
摘要: import re re.findall() 查询到所有符合的 re.search re.match re.compile flags 修改正则的匹配规则 特殊符号 "." 除换行符外的任意字符 "^" 匹配开头 "$" 匹配结尾 "*" 重复前一个字符0或尽可能多次 "+" 重复前一个字符1或尽可 阅读全文
posted @ 2022-01-12 14:42 mingtian是吧 阅读(21) 评论(0) 推荐(0) 编辑
摘要: import logging https://www.cnblogs.com/yuanchenqi/articles/5732581.html https://www.cnblogs.com/qianyuliang/articles/7234217.html#top import logging # 阅读全文
posted @ 2022-01-12 14:41 mingtian是吧 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页