2016年8月8日

git的使用

摘要: git的使用 1.创建SSH Key ssh keygen t rsa C "5733 @qq.com" 在主用户目录下生成 .ssh 文件夹,该目录下有 id\_rsa 和 id\_rsa.pub 两个文件。 id\_rsa 是私钥, id\_rsa.pub 是公钥 2.Add SSH Key 登 阅读全文

posted @ 2016-08-08 17:13 xweel 阅读(134) 评论(0) 推荐(0)

2016年6月4日

比较字符串(包含以及变位词)

摘要: Two Strings Are Anagrams Description Write a method anagram(s,t) to decide if two strings are anagrams or not. What is Anagram? Two strings are anagra 阅读全文

posted @ 2016-06-04 17:48 xweel 阅读(185) 评论(0) 推荐(0)

2016年5月31日

python 与时间有关的操作

摘要: python保存时间戳文件 import time ISOTIMEFORMAT='%Y %m %d %X' ISOTIMEFORMAT='%Y %m %d' t= time.strftime( ISOTIMEFORMAT, time.gmtime( time.time() ) ) f = open( 阅读全文

posted @ 2016-05-31 18:46 xweel 阅读(204) 评论(0) 推荐(0)

2016年5月27日

PyBrain库的example之NFQ流程图分析

摘要: PyBrain库的example之NFQ流程图分析 如下是测试程序。主要分析 doEpisode和learn 两个函数。 !/usr/bin/env python __author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de' from pybrain.r 阅读全文

posted @ 2016-05-27 19:43 xweel 阅读(452) 评论(0) 推荐(0)

2016年5月26日

python之面向对象(继承)

摘要: "类的继承" python之面向对象(继承) 面向对象的编程带来的主要好处之一是代码的重用,实现这种重用的方法之一是通过继承机制。继承完全可以理解成类之间的类型和子类型关系。 需要注意的地方:继承语法 class 派生类名(基类名)://... 基类名写作括号里,基本类是在类定义的时候,在元组之中指 阅读全文

posted @ 2016-05-26 17:53 xweel 阅读(177) 评论(0) 推荐(0)

2016年5月22日

C/C++中一些不太注意到的小知识点--[锦集]

摘要: C/C++中一些不太注意到的小知识点 [锦集] C/C++小知识点 [锦集] “=”和“ When you apply the sizeof operator to an array identifier, the result is the size of the entire array rat 阅读全文

posted @ 2016-05-22 22:55 xweel 阅读(208) 评论(0) 推荐(0)

2016年5月21日

python 有关引用的一些问题

摘要: python 有关引用的一些问题 print id.__doc__ ​ id(object) integer Return the identity of an object. This is guaranteed to be unique among simultaneously existing 阅读全文

posted @ 2016-05-21 22:24 xweel 阅读(295) 评论(0) 推荐(0)

CMake尝鲜

摘要: 安装gcc,cmake,g++,gdb 阅读全文

posted @ 2016-05-21 09:50 xweel 阅读(268) 评论(0) 推荐(0)

vim初探

摘要: https://github.com/spf13/spf13-vim 安装了此博主的开源项目。 :vsp ——竖分屏 :sp ——横分屏 阅读全文

posted @ 2016-05-21 09:49 xweel 阅读(146) 评论(0) 推荐(0)

2016年5月19日

python运算符一些注意项

摘要: python运算符一些注意项 '/'浮点除,和'//'整除 单个'/'是浮点除,两个除号'//'是整除 整除也适用于浮点数。但是,用整除计算浮点除的结果只是在整除的结果上 浮点化 ,比如3.6//2.1,结果是1.0。 例子: a = 5 for i in [1.0,1.5,2,3,4,5,6]: 阅读全文

posted @ 2016-05-19 14:07 xweel 阅读(288) 评论(0) 推荐(0)

导航