牛二的梦想  

2019年4月3日

摘要: D:\>python vectorsum.py 10001000Traceback (most recent call last): File "vectorsum.py", line 26, in <module> c = pythonsum(size) File "vectorsum.py", 阅读全文
posted @ 2019-04-03 08:31 牛二的梦想 阅读(6657) 评论(0) 推荐(0) 编辑

2019年3月30日

摘要: [4. 0. 1. 2. 3. 4. 0. 1. 2. 3. 4. 0. 1. 2. 3. 4.]open: [344.17 335.8 341.3 344.45 343.8 343.61 347.89 353.68 355.19 357.39 354.75 356.79 359.19 360.8 阅读全文
posted @ 2019-03-30 15:50 牛二的梦想 阅读(478) 评论(0) 推荐(0) 编辑

2019年3月29日

摘要: 关于TypeError: strptime() argument 1 must be str, not bytes解析 在使用datetime.strptime(s,fmt)来输出结果日期结果时,出现错误 TypeError: strptime() argument 1 must be str, n 阅读全文
posted @ 2019-03-29 10:27 牛二的梦想 阅读(1896) 评论(0) 推荐(0) 编辑

2019年2月28日

摘要: numpy.loadtxt Load data from a text file. Each row in the text file must have the same number of values. Parameters: fname : file or str File, filenam 阅读全文
posted @ 2019-02-28 16:21 牛二的梦想 阅读(861) 评论(0) 推荐(0) 编辑

2019年2月27日

摘要: 其中article表 mysql的DDL CREATE TABLE `les_article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(70) NOT NULL, `excerpt` longtext NOT NULL, `vi 阅读全文
posted @ 2019-02-27 09:14 牛二的梦想 阅读(650) 评论(0) 推荐(0) 编辑

2019年2月26日

摘要: 今天学习css,修改bootstrap.min.css文件,改了半天就是没反应。 后来网上搜了半天,原来是浏览器的缓存问题,清除缓存后,正常显示了。 意外收获: 浏览器,点右键 【检查】 可以改好CSS文件后,点进去复制,再拷贝覆盖自己系统里面的CSS源文件。 阅读全文
posted @ 2019-02-26 13:45 牛二的梦想 阅读(157) 评论(0) 推荐(0) 编辑

2019年2月25日

摘要: 出现此问题的解决方法: 在mysql中创建一个和settings.py里设置的mysql 'name'名字一样的数据库就可以了。 阅读全文
posted @ 2019-02-25 10:16 牛二的梦想 阅读(3531) 评论(0) 推荐(0) 编辑

2019年2月23日

摘要: 原计划:导入一个csv文件,然后算出平均值 import numpy as np c=np.loadtxt('d:\python36\data.csv', delimiter=',', usecols=(2,), unpack=True) print ("median =", np.median(c 阅读全文
posted @ 2019-02-23 16:03 牛二的梦想 阅读(2820) 评论(0) 推荐(1) 编辑
 
摘要: I am trying to load data with numpy.loadtxt... The file im trying to read is using cp1252 coding. Is there a possibility to change the encoding to cp1 阅读全文
posted @ 2019-02-23 12:10 牛二的梦想 阅读(2476) 评论(0) 推荐(1) 编辑

2019年2月16日

摘要: use [database_name]godelete from table_nameTest where FCRTime<(Select CONVERT(varchar(100),DATEADD(DAY,-30,getdate()), 112)) 'DELETE语句执行删除的过程是每次从表中删除一 阅读全文
posted @ 2019-02-16 14:30 牛二的梦想 阅读(239) 评论(0) 推荐(0) 编辑