idea中tomcat乱码:a.file->settings->搜File Encoding,全改为utf-8b.打开idea工作目录,idea.exe.vmoptions和idea64.exe.vmoptions最后追加-Dfile.encoding=UTF-8c.配置tomcat页面中:VM o ...
分类:
其他好文 时间:
2020-06-17 14:24:25
阅读次数:
47
{ "HEADER":{ "prefix": "header", "body": [ "#!/usr/bin/env python3", "# -*- encoding: utf-8 -*-", "__Author__ = 'liy'", // "@File : $TM_FILENAME", // ...
分类:
其他好文 时间:
2020-06-16 23:29:36
阅读次数:
86
一、sonar安装步骤 (部署硬件要求2G以上内存) 1. 准备镜像 docker pull postgres docker pull sonarqube2. 编写脚本 1.start-postgresql.sh #!/bin/bash docker stop postgresql docker r ...
分类:
其他好文 时间:
2020-06-16 20:39:08
阅读次数:
81
MTLFeatureSet_iOS_GPUFamily4_v2 A11 iphone8 iphone8pllus iphoneX https://developer.apple.com/documentation/metal/indirect_command_buffers/encoding_ind ...
分类:
其他好文 时间:
2020-06-16 18:04:21
阅读次数:
106
Beego接收Json, 并发请求Api, 返回Json package controllers import ( "encoding/json" "fmt" "github.com/astaxie/beego" "io/ioutil" "net/http" "sync" ) type ApiCon ...
分类:
Web程序 时间:
2020-06-16 14:59:58
阅读次数:
189
1.读取 # 1.读取数据集 def read_dataset(): file_path = r'D:\SMSSpamCollection.txt' sms = open(file_path, encoding='utf-8') sms_data = [] sms_label = [] csv_re ...
分类:
其他好文 时间:
2020-06-16 12:50:49
阅读次数:
51
进程间通信 见天写了一段爬虫代码,通过信号量控制进程数量,代码如下: #!/usr/bin/python3 # -*- encoding: utf-8 -*- import requests from bs4 import BeautifulSoup from multiprocessing imp ...
分类:
系统相关 时间:
2020-06-16 00:34:08
阅读次数:
70
1 """写入csv文件""" 2 3 4 import csv 5 6 # 方法一: 7 def write_csv_demo1(): 8 headers = ['username', 'age', 'height'] 9 values = [ 10 ('张三', 18, 180), 11 ('李 ...
分类:
其他好文 时间:
2020-06-15 23:09:20
阅读次数:
54
pom.xml <?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 ...
分类:
编程语言 时间:
2020-06-15 17:44:28
阅读次数:
56
pom依赖: <?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" ...
分类:
编程语言 时间:
2020-06-15 13:56:59
阅读次数:
71