file=open('tt.txt','r') news=file.read() myreplace=''',()!`%&*''' for i in myreplace: myreplace=myreplace.replace(i,' ') wordlist=news.lower().split()... ...
分类:
编程语言 时间:
2018-03-27 18:54:56
阅读次数:
185
sep=''',.?!":''' exclude={'the','and','of','to'} for c in sep: news=news.replace(c,' ') wordList=news.lower().split() wordDict={} wordSet=set(wordList... ...
分类:
其他好文 时间:
2018-03-27 18:46:39
阅读次数:
138
#读取英文歌词文件 file=open('dd.txt','r',encoding='utf-8') word=file.read() file.close() #排除符号 di='''.,''""?!:;''' for i in di: word=word.replace(i,'') #大写转换小... ...
分类:
其他好文 时间:
2018-03-27 18:43:43
阅读次数:
123
利用hibernate访问不同数据库中的不同表或不同数据库中的相同表。 本人在开发过程中的解决方案,希望大家交流。一般用myEclipse工具会自动生成Hibernate的相关文件,大致有下面几类: (1)数据库配置文件:.cfg.xml(2)映射文件.hbm.xml(3)映射类:pojo(4)会话 ...
分类:
数据库 时间:
2018-03-27 16:42:47
阅读次数:
182
create or replace procedure errormap is begin --八大异常之一 挂牌价为0或者空delete T where type='1';insert into T(NAME,VALUE1,VALUE2,type)select NAME,VALUE1,VALUE2 ...
分类:
数据库 时间:
2018-03-27 12:23:08
阅读次数:
153
代码块 运行结果 a+-b+ -c+ -d -e a,,b,,,c,,,d,,e ...
分类:
其他好文 时间:
2018-03-27 10:58:09
阅读次数:
163
链接:https://www.cnblogs.com/lina6251125/p/6392299.html 知识点: location.href跳转 location.replace跳转 location.reload刷新 特定页面下: history.go(-1);后退 history.go(1) ...
分类:
Web程序 时间:
2018-03-26 23:37:34
阅读次数:
312
file = open('song.txt', 'r') # 只读打开文件 lyrics = file.read() # 读取文件内容 file.close() # 关闭文件资源 sep=''',.?!:'-''' for c in sep: song = song.replace(c,'') wo ...
分类:
其他好文 时间:
2018-03-26 12:35:50
阅读次数:
125
1 css引入方式 2 document.querySelector()与document.getElementById():querySelector静态的,但是例子不能用,否则查找为空 getElementById动态的,一次到位 3 id 唯一的意思是属性值只能有一个 4 replace() ...
分类:
其他好文 时间:
2018-03-25 12:05:58
阅读次数:
162