2021年 †
1月 †
2月 †
for machiform in result:
redm_flag = redm_cache
reds_flag = reds_cache
redp_flag = redp_cache
newtehai = []
for tehai in machiform[0]:
newstr = tehai
if "5m" in tehai and redm_flag:
redm_flag = False
needle = tehai.find("5m")
newstr = needle_replace(newstr, needle, "0")
elif "5s" in tehai and reds_flag: #m,s,pがいメンツの中には登場しないからelseでよい
reds_flag = False
needle = tehai.find("5s")
newstr = needle_replace(newstr, needle, "0")
elif "5p" in tehai and redp_flag:
redp_flag = False
needle = tehai.find("5p")
newstr = needle_replace(newstr, needle, "0")
newtehai.append(newstr)
newmachi = [newtehai, machiform[1]]
newres.append(newmachi)
return newres