摘要: package mainimport "fmt"import "time"func main() { //声明变量 var param_a int var param_b, param_c int param_a, param_b, param_c = 1, 1, 1 fmt.Println(par 阅读全文
posted @ 2021-03-30 19:41 wxdr 阅读(62) 评论(0) 推荐(0) 编辑
摘要: import mysql.connectorclass mydb(): def __init__(self): self.connection = mysql.connector.connect( host="localhost", # 数据库主机地址 user="root", # 数据库用户名 p 阅读全文
posted @ 2020-11-28 22:45 wxdr 阅读(124) 评论(0) 推荐(0) 编辑
摘要: import requestsurl = "https://www.baidu.com/sugrec"params = { 'prod':'pc_his', 'from':'pc_web', 'json':1, 'sid':'1426_33102_33058_31253_32706_33098_33 阅读全文
posted @ 2020-11-14 22:38 wxdr 阅读(252) 评论(0) 推荐(0) 编辑
摘要: print('hello python world') message = 'hello python world second' print(message) #变量的命名可以是字母数字下划线, 以字母或下划线开头,不能以数字开头。不能用特殊的字符。message = 'hello python 阅读全文
posted @ 2020-09-22 22:59 wxdr 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 服务端操作 1》创建版本库 svnadmin create /Users/hudan/svn/runoob01 创建版本库 修改配置文件 /Users/hudan/svn/runoob01/conf 修改svnserve.conf(注意前面不要有空格) anon-access = read auth 阅读全文
posted @ 2020-09-12 12:44 wxdr 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 查找镜像 #docker search gitlab # docker pull gitlab/gitlab-ce 启动容器: docker run -d -p 443:443 -p 8090:80 -p 222:22 --name gitlab --restart always -v /Users 阅读全文
posted @ 2020-08-28 09:00 wxdr 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 重要组成部分: 配置git // 配置全局用户 git config --global user.name ‘用户名称’ git config --global user.email '邮箱’ //删除全局配置 git config --global --unset user.*** 查看git配置 阅读全文
posted @ 2020-08-27 16:45 wxdr 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 新建组合索引 alter table table1 add index col_index(col1, col2, col3); 查询:组合查询有向左匹配规则 使用查询 select * from table1 where col1='1';//使用索引 select * from table1 w 阅读全文
posted @ 2020-08-19 11:02 wxdr 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1》流量优化 防盗链处理 2》前端优化 减少http连接数,cdn,将图片放在独立服务器。 3》后端优化 动态页面静态化,并发处理,队列处理 4》数据库优化 数据库缓存,分库分表,读写分离 5》服务器优化 负载均衡 阅读全文
posted @ 2020-08-18 10:29 wxdr 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 一:介绍 Docker 是一个开源的应用容器。 可以让开发者打包他们的应用以及依赖包到一个轻量级的,可移植的容器中,然后发布到任何linux机器上,也可以实现虚拟化。 二:使用场景 1》Web 应用的自动化打包和发布。 2》自动化测试和持续集成、发布。 3》在服务型环境中部署和调整数据库或其他的后台 阅读全文
posted @ 2020-08-17 09:45 wxdr 阅读(130) 评论(0) 推荐(0) 编辑