上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: 安装mysql客户端 apt install mysql-client-core-5.7 执行连接数据库 mysql -h192.168.1.1 -uroot -p123456 -P3306 默认端口的话不需要-P参数 查看数据库列表 show databases; 切换到数据库 use xxx; 阅读全文
posted @ 2021-11-23 18:08 darling331 阅读(694) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 环境 下载nginx源码包 进入nginx官网下载 http://nginx.org/download/ 选择自己想要的版本 wget http://nginx.org/download/nginx-1.21.4.tar.gz 准备安装环境(提前下载一些环境配置) apt-get in 阅读全文
posted @ 2021-11-10 14:07 darling331 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 创建MYSQL存储过程 CREATE PROCEDURE productpricing() BEGIN SELECT Avg(prod_price) AS priceaverage FROM products; END; 此存储过程名为productpricing ,用CREATE PROCEDUR 阅读全文
posted @ 2021-10-28 20:41 darling331 阅读(492) 评论(0) 推荐(0) 编辑
摘要: openpyxl填充背景和字体颜色 加载已存在的excel文件进行处理 import openpyxl import openpyxl from openpyxl.styles import Font # 导入字体模块 from openpyxl.styles import PatternFill 阅读全文
posted @ 2021-10-23 22:32 darling331 阅读(282) 评论(0) 推荐(0) 编辑
摘要: python 时间格式化 print(str(datetime.datetime.now().strftime("%Y-%m-%d %X"))) print(str(datetime.datetime.now().strftime("%Y-%m-%d %H%M%S"))) List和元组添加元素 l 阅读全文
posted @ 2021-10-22 23:30 darling331 阅读(123) 评论(1) 推荐(1) 编辑
摘要: 生成不带声调的 import pypinyin # 将汉字转为拼音 def pinyin(word): s = '' for i in pypinyin.pinyin(word, style=pypinyin.NORMAL): s += ''.join(i) return s if __name__ 阅读全文
posted @ 2021-10-07 16:18 darling331 阅读(459) 评论(0) 推荐(0) 编辑
摘要: order by 排序 如果不排序, 数据一般将以它在底层表中出现的顺序显示。这可以是数据最初添加 到表中的顺序。但是,如果数据后来进行过更新或删除,则此顺序将 会受到MySQL重用回收存储空间的影响。因此,如果不明确控制的话, 不能(也不应该)依赖该排序顺序。关系数据库设计理论认为,如果 不明确规 阅读全文
posted @ 2021-10-03 23:28 darling331 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 引入第三方包 pip install PyExecJS -i https://mirrors.aliyun.com/pypi/simple/ 或者 pip insyall PyExecJS 调用js文件进行方法执行 import execjs Passwd = execjs.compile(open 阅读全文
posted @ 2021-09-26 17:54 darling331 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 创建一个maven项目 在pox.xml文件配置如下信息 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 阅读全文
posted @ 2021-09-21 11:32 darling331 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 第一步 需要一个阿里云网盘账户 如果没有账户的可以通过以下链接获取 我在使用不限速「阿里云盘」,赠送你 500GB 快来试试吧 点此链接领取福利: https://pages.aliyundrive.com/mobile-page/web/beinvited.html?code=bba50fd 第二 阅读全文
posted @ 2021-09-18 19:44 darling331 阅读(4486) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页