2017年2月5日

python numpy 判断ndarray 中是否有 nan

摘要: 下面讨论了哪一种方法的速度最快 reference: stackoverflow.com/questions/911871/detect-if-a-numpy-array-contains-at-least-one-non-numeric-value 阅读全文

posted @ 2017-02-05 19:08 norsd 阅读(13964) 评论(0) 推荐(0) 编辑

2017年2月4日

matplotlib.pyplot import报错: ValueError: _getfullpathname: embedded null character in path

摘要: Environment: Windows 10, Anaconda 3.6 matplotlib 2.0 import matplotlib.pyplot 报错: ValueError: _getfullpathname: embedded null character in path 原因以及So 阅读全文

posted @ 2017-02-04 17:14 norsd 阅读(2661) 评论(0) 推荐(0) 编辑

2017年2月2日

python format

摘要: http://blog.xiayf.cn/2013/01/26/python-string-format/ https://zerokspot.com/weblog/2015/12/31/new-string-formatting-in-python/ 阅读全文

posted @ 2017-02-02 17:12 norsd 阅读(180) 评论(0) 推荐(0) 编辑

python 关于时区

摘要: pytz提供了时区对象timezone 如果我们如此使用: 我们得到的时间不是 GMT+8, 而是8小时又6分钟 我们需要的是CST时间, 所以可以用如下代码: 这样得到就是准确的 GMT+8 http://www.keakon.net/2010/12/14/%E7%94%A8datetime%E5 阅读全文

posted @ 2017-02-02 15:35 norsd 阅读(1613) 评论(0) 推荐(0) 编辑

2017年2月1日

pyMongo 一些基本操作

摘要: 1. find() 函数, 可以在函数体内直接指定 filter, sort, projection(限制field), 语法如下: datas = col.find( filter = {"$and":[{"_id":{"$gte":datetime.datetime(2017, 1, 20)}} 阅读全文

posted @ 2017-02-01 14:49 norsd 阅读(2528) 评论(0) 推荐(0) 编辑

2017年1月2日

c# 衍生类和基类的构造顺序

摘要: public class MyDeriveClass :MyBaseClass { public MyDeriveClass() :base() { } int derive_int = 1; } public class MyBaseClass { public MyBaseClass() { } 阅读全文

posted @ 2017-01-02 14:29 norsd 阅读(187) 评论(0) 推荐(0) 编辑

2016年11月22日

DataGridView控件对Column的设置

摘要: http://stackoverflow.com/questions/18666582/datagridview-autofit-and-fill 1.Column覆盖所有width: dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode 阅读全文

posted @ 2016-11-22 12:35 norsd 阅读(187) 评论(0) 推荐(0) 编辑

2016年11月4日

Bloomberg 专线配置问题

摘要: 其实很简单,满足bbg的要求就可以了, 配置如下几个网段的路由:208.134.161.0 using the subnet mask of 255.255.255.0 205.183.246.0 using the subnet mask of 255.255.255.0 199... 阅读全文

posted @ 2016-11-04 20:48 norsd 阅读(232) 评论(0) 推荐(0) 编辑

2016年10月5日

c# Relative Path convert to Absolute Path

摘要: Reference: http://stackoverflow.com/questions/4796254/relative-path-to-absolute-path-in-c http://stackoverflow.com/questions/1399008/how-to-c... 阅读全文

posted @ 2016-10-05 12:56 norsd 阅读(458) 评论(0) 推荐(0) 编辑

2016年9月5日

c/c++/c# 快速计算 Cumulative Normal Distribution 正态累积函数CDF

摘要: 链接: http://stackoverflow.com/questions/2328258/cumulative-normal-distribution-function-in-c-c http://www.johndcook.com/blog/cpp_phi/个人使用的是如下的... 阅读全文

posted @ 2016-09-05 12:01 norsd 阅读(1408) 评论(0) 推荐(0) 编辑

导航