码迷,mamicode.com
首页 >  
搜索关键字:gbk encoding support    ( 19109个结果
curl命令常用用法
1、proxy support curl -x 127.0.0.1:8888 https://www.baidu.com/ 2、get -G:使用get请求 -d:指定请求数据 curl https://www.baidu.com curl -G https://www.baidu.com curl ...
分类:Web程序   时间:2020-11-23 12:19:38    阅读次数:14
django解决跨域问题
django解决跨域问题 1 使用第三方模块django-cors-headers 1.1 安装 pip install django-cors-headers 1.2 配置 INSTALLED_APPS = [ 'corsheaders', ] MIDDLEWARE = [ 'corsheader ...
分类:其他好文   时间:2020-11-23 12:10:55    阅读次数:6
安卓购物菜单
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an ...
分类:移动开发   时间:2020-11-23 12:00:24    阅读次数:16
西游记相关的分词,出现次数最高的20个
import jieba txt = open("西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for word in ...
分类:其他好文   时间:2020-11-20 11:30:40    阅读次数:32
聊斋分词
import jieba txt = open("聊斋志异白话简写版.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for w ...
分类:其他好文   时间:2020-11-20 11:24:38    阅读次数:3
jieba 分词. 西游记相关的分词,出现次数最高的20个。
1 import jieba 2 3 txt = open("D:\\西游记.txt", "r", encoding='gb18030').read() 4 words = jieba.lcut(txt) # 使用精确模式对文本进行分词 5 counts = {} # 通过键值对的形式存储词语及其出 ...
分类:其他好文   时间:2020-11-19 13:02:49    阅读次数:32
Spring Boot Sample 024之spring-boot-data-influxdb
一、环境 Idea 2020.1 JDK 1.8 maven 二、目的 spring boot 通过整合influxdb gitHub地址: https://github.com/ouyushan/ouyushan-spring-boot-samples 三、步骤 3.1、点击File → New ...
分类:数据库   时间:2020-11-19 12:55:13    阅读次数:14
jieba:西游记
import jieba txt = open("D:\\西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for wor ...
分类:其他好文   时间:2020-11-19 12:43:23    阅读次数:12
Python实现文件读写,并添加异常处理
#写古诗到文件中f = open("gushi.txt","w",encoding="utf-8") #不加encoding="utf-8"文件会出现乱码f.write(''' 静夜思 李白窗前明月光,疑是地上霜。举头望明月,低头思故乡。 ''')f.close()#复制:先读出文件中内容,再写入新 ...
分类:编程语言   时间:2020-11-18 13:24:20    阅读次数:28
SpringMVC自带Cron定时器Demo及常见问题
在 Clock 类上添加 @Component 注解,在需要定时执行的方法上面加上 @Scheduled 注解,并添加 cron 表达式。常见问题包括 @Scheduled 定时任务不生效,@Scheduled 定时任务执行两次等 ...
分类:编程语言   时间:2020-11-18 12:26:59    阅读次数:6
19109条   上一页 1 ... 34 35 36 37 38 ... 1911 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!