摘要:
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 阅读全文
摘要:
000-- x^y 001-- uclidean algorithm better one: 002 003 阅读全文
摘要:
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, 阅读全文
摘要:
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 阅读全文
摘要:
Running result: 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
000-- to print the value of a list in a list: 001-- the codes of the function min(): 002-- update the sum() function: 阅读全文
摘要:
000-- to transfer the data into differnt format: binary, decimal, hexadecimal, octal Running result: By refering : a -- the difference between os._exi 阅读全文