摘要: import re # match print(re.match(r'www', 'www.runoob.com').span()) # (0,3) print(re.match('com', 'www.runoob.com')) # None line = "Cats are smarter th 阅读全文
posted @ 2022-12-04 12:29 carol2014 阅读(68) 评论(0) 推荐(0) 编辑
摘要: SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 原始代码 for x in os.listdir('C:\Users\Administrator\Desktop\files'): pr 阅读全文
posted @ 2022-12-04 11:58 carol2014 阅读(23) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <style> div { margin-top: 0.25rem; margin-bottom: 0.25rem; } /* 使用margin属性居中 */ .margin-center 阅读全文
posted @ 2022-12-02 17:10 carol2014 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 部分配置项 <link href="./plugins/fullcalendar-5.11.2/lib/main.css" rel="stylesheet" /> <script type="text/javascript" language="javascript" src="./plugins/ 阅读全文
posted @ 2022-12-02 16:54 carol2014 阅读(2278) 评论(0) 推荐(0) 编辑
摘要: <link href="./plugins/fullcalendar-5.11.2/fullcalendar-scheduler/main.min.css" rel="stylesheet" /> <script type="text/javascript" language="javascript 阅读全文
posted @ 2022-12-02 16:37 carol2014 阅读(833) 评论(0) 推荐(0) 编辑
摘要: <script> const range = [ { st: "2022-11-29 10:00", et: "2022-11-29 11:00", }, { st: "2022-11-29 15:00", et: "2022-11-29 19:00", }, ]; const startTime 阅读全文
posted @ 2022-12-02 16:29 carol2014 阅读(1223) 评论(0) 推荐(0) 编辑
摘要: PHP Intelephense :php代码格式化,代码提示等功能 PHP Server:打开一个php文件,右键即可开启一个server,并在默认浏览器中运行当前文件 Laravel Blade formatter:laravel框架blade文件格式化 python、Black Formatt 阅读全文
posted @ 2022-12-02 16:27 carol2014 阅读(676) 评论(0) 推荐(0) 编辑
摘要: import csv import seaborn as sns import matplotlib.pyplot as plt # 解决中文不显示和负号不显示问题 rc = { 'font.family': 'Microsoft YaHei', 'axes.unicode_minus': Fals 阅读全文
posted @ 2022-12-02 16:12 carol2014 阅读(55) 评论(0) 推荐(0) 编辑
摘要: pip install xlsxwriter xlsxwriter 生成的文件后缀名为.xlsx,最大能够支持 1048576 行数据,16384 列数据 import os import xlsxwriter import datetime if os.path.exists('./gen-fil 阅读全文
posted @ 2022-12-02 16:06 carol2014 阅读(403) 评论(0) 推荐(0) 编辑
摘要: pip install openpyxl openpyxl 读写 xlsx 文件,不处理 xls 文件 读文件 import openpyxl # 打开xlsx文件 excel = openpyxl.load_workbook('./source-files/info.xlsx') for shee 阅读全文
posted @ 2022-12-02 16:03 carol2014 阅读(972) 评论(0) 推荐(0) 编辑