Skip to content

Commit

Permalink
韵母没有的字是什么魔鬼
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonHX committed Sep 8, 2022
1 parent 70f6025 commit 669c6f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ def c_py(x):
yton = y[-1]
if not yton.isdigit():
yton = 5
md.append([x[0],yini, yfin, yton])
md.append([x[0],ini, fin, ton])
if yfin != "":
md.append([x[0],yini, yfin, yton])
if fin != "":
md.append([x[0],ini, fin, ton])
Mandarin.apply(c_py,axis=1)
Mandarin = pd.DataFrame(md,columns=["zi","shengmu","yunmu","diao"])
Mandarin = Mandarin.drop_duplicates()
Expand Down

0 comments on commit 669c6f8

Please sign in to comment.