string count = "Data Source=.;Initial Catalog=123;User ID=sa;pwd=123456"; SqlConnection conn = new SqlConnection(count); conn.Open(); DataTable da = n ...
分类:
其他好文 时间:
2017-10-28 21:58:17
阅读次数:
102
现在假设一个脚本是,hello.py,内容是 fo = open('xx.txt','w') while 1: fo.write('hello world') print('hi') time.sleep(1) 如果使用python hello.py那么控制台一直print hi,会干不了其它活,必 ...
分类:
系统相关 时间:
2017-10-28 21:05:38
阅读次数:
265
终端命令: lsof -i :8000 or sudo lsof -i :8000 lsof -i tcp:8000 lsof (list open file) COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Python 604 lxx 4u ...
分类:
系统相关 时间:
2017-10-28 19:52:59
阅读次数:
488
开源项目网址收藏 http://wwww.web-java.com http://www.open-open.com/ sourceforge http://www.sourceforge.net java.net http://www.java.net www.eclipse.org www.op ...
分类:
其他好文 时间:
2017-10-28 19:49:05
阅读次数:
123
题目大意 给定A串,选择A串的前lB个字符作为B串,再在B串后增加一个字符,问最长的相等的A串前缀和B串的后缀。 Solution 1(KMP) 用1个奇怪的字符连接A串和B串,再用KMP求最长公共前后缀。 Code Solution 2(Hash) hash A串的前缀和B的后缀,然后for去比较 ...
分类:
其他好文 时间:
2017-10-28 18:57:34
阅读次数:
149
报错内容是: SQL Server 阻止了对组件 'Ad Hoc Distributed Queries' 的 STATEMENT'OpenRowset/OpenDatasource' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 ...
分类:
数据库 时间:
2017-10-28 17:38:57
阅读次数:
188
本文来源:huang_xw 的《Oracle数据库的状态查询》1 状态查询启动状态SQL语句结果nomountselect status from v$instance;STARTEDselect open_mode from v$database;ERROR at line 1:ORA-01507... ...
分类:
数据库 时间:
2017-10-28 15:34:14
阅读次数:
224
Visual C++ Compiler November 2012 CTP 可以直接上微软下载 https://www.microsoft.com/en-us/download/details.aspx?id=35515 就可以了。 ...
分类:
其他好文 时间:
2017-10-28 15:30:55
阅读次数:
207
f = open("username.txt","r")y = f.read()#print(y)f.close()p = open("password.txt","r")p1 = p.read()#print(p1)p.close()a = 0while True: c = open("cuo.t ...
分类:
其他好文 时间:
2017-10-28 13:01:02
阅读次数:
131
CGAL带岛多边形三角化,并输出(*.ply)格式的模型 模型输出的关键是节点和索引 #include <CGAL/Triangulation_vertex_base_with_id_2.h>#include <CGAL/Triangulation_face_base_with_info_2.h> ...
分类:
其他好文 时间:
2017-10-28 12:49:21
阅读次数:
766