摘要: a = "python" b = a[::-1] #result b is "nohtyp" 阅读全文
posted @ 2017-01-19 14:09 KennyRom 阅读(194) 评论(0) 推荐(0) 编辑
摘要: window.getch([y, x]) Get a character. Note that the integer returned does not have to be in ASCII range: function keys, keypad keys and so on return n 阅读全文
posted @ 2017-01-19 13:43 KennyRom 阅读(836) 评论(0) 推荐(0) 编辑
摘要: Defining the Encoding 阅读全文
posted @ 2017-01-19 12:24 KennyRom 阅读(303) 评论(0) 推荐(0) 编辑
摘要: Given a string of length one, return an integer representing the Unicode code point of the character when the argument is a unicode object, or the val 阅读全文
posted @ 2017-01-19 09:53 KennyRom 阅读(523) 评论(0) 推荐(0) 编辑
摘要: Collections is a high-performance container datatypes. defaultdict objects 众所周知,在Python中如果访问字典中不存在的键,会引发KeyError异常(JavaScript中如果对象中不存在某个属性,则返回undefine 阅读全文
posted @ 2017-01-19 09:43 KennyRom 阅读(316) 评论(0) 推荐(0) 编辑