2016年4月26日

python学习笔记(二)

摘要: 1、切片 2、迭代 只要是可迭代对象,无论是否有下标,都可以迭代,比如dict就可以迭代。 >>> d={'a':1,'b':2,'c':3}>>> for key in d: print(key) bac >>> for key,value in d.items(): print(key,valu 阅读全文

posted @ 2016-04-26 00:06 cxkof 阅读(686) 评论(0) 推荐(0)

2016年4月25日

关于 汉诺塔的递归分析

摘要: 二叉树,深度优先。 阅读全文

posted @ 2016-04-25 22:10 cxkof 阅读(163) 评论(0) 推荐(0)

2016年4月21日

python学习笔记(一)

摘要: 1、最基本的IO语句 name=input() print('hello,',name) 2、python还允许用r''表示''内部的字符串默认不转义 print('\\\t\\') print(r'\\\t\') 3、空值用none表示,但不能理解为0。因为0是有意义的。 4、java是静态语言, 阅读全文

posted @ 2016-04-21 20:50 cxkof 阅读(505) 评论(0) 推荐(0)

导航