自己創類似eval的函數就好了
def eval_(words): wlist = [] for word in words: word = int(word) wlist.append(word) return reduce(lambda x, y: 10*x+y, wlist) #運用reduce記得要 import functools