摘要:
import random li = [] def fahongbao(money,num=6): if money > 0 and num != 1: n = round(random.uniform(0.01,money - (0.01 * num)),2) num -= 1 li.append(n) money -= ... 阅读全文
摘要:
import re def atom_cal(exp): # 计算乘除法 if '*' in exp: a,b = exp.split('*') return str(float(a) * float(b)) elif '/' in exp: a, b = exp.split('/') return str(floa... 阅读全文