Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 436 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 436 Bytes

python_tips

some tips about python

dynamically get result of expressions(动态获取表达式的结果)

dynamically_get_result_of_expressions.py

get non-repeating random numbers(integer)(获得不重复随机数,如:24点游戏)

get_non_repeating_random_numbers.py ps: you can do 24 point game by get_non_repeating_random_numbers(1,13,4)

lru_cache(缓存函数和最近一次的参数)

lru_cache_test.py