Lemon233
发表于 2020-5-16 03:47:07
def daily384(s="owoztneoerzeorthreeseven"):
k = ["zero", "one", "two", "three", "four", "five", "six", "seven", "night"]
total = {}
hashstr = []
for i in k:
for j in i:
if j not in hashstr:
hashstr.append(j)
for i in s:
total.setdefault(i, 0)
total += 1
b = * len(k)
str_list = list(s)
while len(str_list) != 0:
for a, i in enumerate(k):
downflow = False
for j in i:
total.setdefault(j, 0)
total -= 1
if total < 0:
downflow = True
if downflow:
for j in i:
total += 1
else:
for j in i:
str_list.remove(j)
b += 1
for i, j in enumerate(b):
print(str(i) * j, end="")
daily384()