Python之計算24點

完整的代碼以下:python # -*- coding: utf-8 -*- import itertools #with brackets def with_brackets(lst, ops_lst): for op in ops_lst: #無括號時的運算情形 expr1 = '('+lst[0]+op[0]+lst[1]+')'+op[1]+lst[2]+op[2
相關文章
相關標籤/搜索