WebLinuxStudy

导航

 

2024年5月30日

摘要: <?php $host = ''; $port = ''; $password = ''; $database = 0; $value = ''; try { $redis = new redis(); $redis->connect($host, $port); if ($password !== 阅读全文
posted @ 2024-05-30 18:36 WebLinuxStudy 阅读(1) 评论(0) 推荐(0) 编辑
 

2024年5月17日

摘要: 设置nginx允许跨域 阅读全文
posted @ 2024-05-17 18:09 WebLinuxStudy 阅读(111) 评论(0) 推荐(0) 编辑
 

2024年3月8日

摘要: 解决办法参考网址: https://blog.csdn.net/qq_22701869/article/details/107539711 其中: <<<<<<< Updated upstream 到 之间的代码是你拉取的远程分支的代码; 到 >>>>>>> Stashed changes 之间的代 阅读全文
posted @ 2024-03-08 18:43 WebLinuxStudy 阅读(270) 评论(0) 推荐(0) 编辑
 

2023年11月13日

摘要: <?phpdate_default_timezone_set("Asia/Shanghai"); list($uSecond, $second) = explode(' ', microtime());echo sprintf('%d%d', $second, (int)($uSecond * 10 阅读全文
posted @ 2023-11-13 17:38 WebLinuxStudy 阅读(188) 评论(0) 推荐(0) 编辑
 

2023年9月21日

摘要: <?phpheader("Content-Type:text/html;charset=UTF-8");$url = 'https://www.baidu.com';print_r(curlContent($url));function curlContent($url, $method = 'ge 阅读全文
posted @ 2023-09-21 11:09 WebLinuxStudy 阅读(62) 评论(0) 推荐(0) 编辑
 

2023年8月24日

摘要: cd /tmp history > history_file.txt sz history_file.txt 阅读全文
posted @ 2023-08-24 17:30 WebLinuxStudy 阅读(101) 评论(0) 推荐(0) 编辑
 

2023年8月8日

摘要: <?php/*简单MYSQL操作类include './mysqlDb.php';$mysql = null;try { $mysql = new db('localhost', 'root', 'root', 'test'); //SELECT $mysql->select('SELECT * F 阅读全文
posted @ 2023-08-08 11:01 WebLinuxStudy 阅读(66) 评论(0) 推荐(0) 编辑
 

2023年8月7日

摘要: import openpyxl# 打开Excel文件wb = openpyxl.load workbook('data.xlsx', data_only=True)# 获取WorkSheetws = wb.worksheets[0]for row in ws.rows: print(row[0].v 阅读全文
posted @ 2023-08-07 18:44 WebLinuxStudy 阅读(446) 评论(0) 推荐(0) 编辑
 
摘要: 第一步:安装Python的xlsxwriter库pip install xlsxwriter 第二步:导入xlsxwriter库import xlsxwriter 第三步:向Excel文件中添加多个Sheet# 创建Excel文件workbook = xlsxwriter.Workbook('tes 阅读全文
posted @ 2023-08-07 18:35 WebLinuxStudy 阅读(365) 评论(0) 推荐(0) 编辑
 

2023年7月14日

摘要: <?phpheader("Content-Type:text/html;charset=UTF-8");date_default_timezone_set("Asia/Shanghai");//1、当前时间戳echo ' 当前时间戳 ' . '<br>';echo 'time()' . '<br>' 阅读全文
posted @ 2023-07-14 11:23 WebLinuxStudy 阅读(17) 评论(0) 推荐(0) 编辑