上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 45 下一页

2014年3月15日

如何使得 python 脚本 不一闪而过

摘要: 1. 简单的方法是在最后加上如下语句: os.system("pause") 2. 但是这个不一定有用,原因是可能在之前的代码中发生异常,那么我们看到的效果也是直接一闪而过 办法是 在语句中加上 try catch 如下: __author__ = 'di_shen_sh'# co... 阅读全文

posted @ 2014-03-15 16:33 norsd 阅读(536) 评论(0) 推荐(0)

python 如何在 command 中能够找到 其他module

摘要: 部分代码如下: __author__ = 'norsd'# coding=utf8# 上句说明使用utf8编码try: import os import sys import time #关键语句,使得py文件能够找到其他module #关键语句,使得py文件能够... 阅读全文

posted @ 2014-03-15 16:28 norsd 阅读(240) 评论(0) 推荐(0)

如何利用 任务计划程序 实现计算机重启后运行特定程序(网络方面)

摘要: 1. 特定程序是一个python的脚本文件,他会向外发送邮件 2. 控制面板 -> 管理工具 -> 任务计划程序 -> 菜单:操作->创建任务 然后填写名称,描述,随后在 安全选项中 (我这台服务器是默认administrator) ,选择 “不管用户是否登录都要运行” 和 ... 阅读全文

posted @ 2014-03-15 16:25 norsd 阅读(1643) 评论(0) 推荐(0)

2014年3月13日

git clone 之后 , 如何复制文件到文件夹 并 上传

摘要: 1. 关于 _netrc machine github.com login myid password mypassword machine bitbucket.org login myid password mypassword 2. 进入路径 d: , 然后直接 clon... 阅读全文

posted @ 2014-03-13 00:08 norsd 阅读(1342) 评论(0) 推荐(0)

2014年3月12日

c# Marshal.PtrToStructure(StructPtr, typeof(T)); 特别注意

摘要: 以下异常:Marshal.PtrToStructure(StructPtr, typeof(T)); 原因: 在实际使用中 T 没有一个 parameterless constructor 于是加一个: private RepoTick() { } 解决问题 ... 阅读全文

posted @ 2014-03-12 14:49 norsd 阅读(3770) 评论(0) 推荐(0)

2014年3月5日

WPF Set connectionId threw an exception异常 以及重复dll的问题

摘要: 1.DataOutputWPF 在显示norlib.Basic.UserConfigControl时 抛出异常 xmlparsingException : WPF Set connectionId threw an exception 此时应该在 调试窗口Local中输入: $exce... 阅读全文

posted @ 2014-03-05 18:58 norsd 阅读(297) 评论(0) 推荐(0)

2014年3月3日

template code 引用的一些问题

摘要: 1.问题: 引用同一个norlib.tt 下面的tt 。 一个KSTrade 正确。 一个 NDAP就报错。 报错说源文件某个函数有错误 helper.Common.tt 错误 2.结果: ... 阅读全文

posted @ 2014-03-03 15:15 norsd 阅读(175) 评论(0) 推荐(0)

2014年3月2日

python matplotlib相关 dateutil

摘要: dateutil: easy_install python_dateutil pyparsing: easy_install pyparsing 阅读全文

posted @ 2014-03-02 14:45 norsd 阅读(178) 评论(0) 推荐(0)

2014年2月25日

当打开一个.h或.cpp文件时, Solution Explorer就自动展开文件所在的目录

摘要: 当打开一个.h或.cpp文件时, Solution Explorer就自动展开文件所在的目录; 如果不想展开: Tools -> Options -> Projects And Solution ... 阅读全文

posted @ 2014-02-25 10:59 norsd 阅读(176) 评论(0) 推荐(0)

2014年2月24日

Tasks 多核查找最大最小值问题

摘要: 先贴下代码 _Datas.ParallelForEach(arg_nDataStartIndex, arg_nDataCount, (data) => { dMax = dMax.Max(data.HighPrice); ... 阅读全文

posted @ 2014-02-24 16:47 norsd 阅读(173) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 45 下一页

导航