摘要: 000 001-- Decimal to Bin (oops, the name of the function is wrong....-_-!!) defect : only can transfer 1 data to Decimal , otherwise the list a[] will 阅读全文
posted @ 2017-06-28 19:10 ReedyLi 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 000-- x^y 001-- uclidean algorithm better one: 002 003 阅读全文
posted @ 2017-06-26 23:28 ReedyLi 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 000 def fun_A(x, y=3): return x * y same as lambda x, y=3: x*y 001 return list_ with map and lambda 002 003 list(filter(lambda n : not(n%3), range(1, 阅读全文
posted @ 2017-06-25 22:00 ReedyLi 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 000-- to calculate specific letters in a string There is error for above codes Reffered:the path to open a file: http://www.cnblogs.com/xubing-613/p/6 阅读全文
posted @ 2017-06-21 10:26 ReedyLi 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Running result: 阅读全文
posted @ 2017-06-19 23:02 ReedyLi 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 000-- define a function to check if a string is a symmatrical string running result: referred : how to reverse a string: http://www.jb51.net/article/1 阅读全文
posted @ 2017-06-17 22:58 ReedyLi 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 000-- Define a function which meets below criteria: a- if the last parameter != 5, then get the sum of all the parameters and multiple base=3 b- if th 阅读全文
posted @ 2017-06-14 23:12 ReedyLi 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 000-- Euclidean algorithm running result: 001-- Decimal to Bin: Running result: 002-- DRY principle : Don't Repeat Yourself 003-- using a tupel as a p 阅读全文
posted @ 2017-06-09 23:09 ReedyLi 阅读(202) 评论(2) 推荐(0) 编辑
摘要: 000-- to print the value of a list in a list: 001-- the codes of the function min(): 002-- update the sum() function: 阅读全文
posted @ 2017-06-07 21:43 ReedyLi 阅读(189) 评论(1) 推荐(0) 编辑
摘要: 000-- to transfer the data into differnt format: binary, decimal, hexadecimal, octal Running result: By refering : a -- the difference between os._exi 阅读全文
posted @ 2017-06-06 23:09 ReedyLi 阅读(372) 评论(0) 推荐(0) 编辑