1 idea File 》 Settings 》Editor 》File Endcoding 》 UTF-8 2 idea 》 Edit Configuration tomcat Server 》VM options 》-Dfile.encoding=UTF-8 3 tomcat\conf 》log ...
分类:
其他好文 时间:
2021-05-24 14:24:24
阅读次数:
0
with open('data1_1.txt', 'r', encoding = 'utf-8') as f: data=f.readlines()n = 0for line in data: if line.strip('\n') == '': continue n+=1print(f'共{n}行 ...
分类:
其他好文 时间:
2021-05-24 14:12:19
阅读次数:
0
对excel表的操作主要通过xlwt,xlrd模块。 创建excel表 import xlwtworkbook = xlwt.Workbook(encoding='utf-8') worksheet = workbook.add_sheet('worksheet') worksheet.write( ...
分类:
其他好文 时间:
2021-05-24 13:58:32
阅读次数:
0
安装pymysql报错: TypeError: 'encoding' is an invalid keyword argument for this function Command "python setup.py egg_info" failed with error code 1 in c:\ ...
分类:
数据库 时间:
2021-05-24 13:57:46
阅读次数:
0
x = [] f = open('C:\\Users\\J&K\\Desktop\\实验4文档相关代码和数据文件\\实验4文档相关代码和数据文件\\data6_1.txt', encoding='utf_8') y = f.readlines() for i in y: x.append(i.str ...
分类:
其他好文 时间:
2021-05-24 12:37:04
阅读次数:
0
原理和步骤 Ioc容器的实现主要依赖的是xml解析和Java反射。 步骤:读取配置文件 → 将其逐层“剥开”,获取各项属性 → 通过各属性配合反射生成对象 → 将其放入容器中,以供调用 具体实现 实体类 Book @Data @AllArgsConstructor @NoArgsConstructo ...
分类:
编程语言 时间:
2021-05-24 12:22:22
阅读次数:
0
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc ...
分类:
其他好文 时间:
2021-05-24 12:05:49
阅读次数:
0
代码: 1 import time 2 import traceback 3 import requests 4 from lxml import etree 5 import re 6 from bs4 import BeautifulSoup 7 from lxml.html.diff impo ...
分类:
数据库 时间:
2021-05-24 12:00:17
阅读次数:
0
web.xml <?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance ...
分类:
编程语言 时间:
2021-05-24 10:42:56
阅读次数:
0
web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc ...
分类:
编程语言 时间:
2021-05-24 10:40:53
阅读次数:
0