fix bug and wish it wont boom again~

This commit is contained in:
nl8590687 2018-04-28 16:52:07 +08:00
parent a12ff4d1ca
commit a43b871e9e
1 changed files with 3 additions and 2 deletions

View File

@ -131,8 +131,9 @@ class DataSpeech():
else: else:
n = n_start // bili * (bili - 1) n = n_start // bili * (bili - 1)
yushu = n_start % bili yushu = n_start % bili
filename = self.dic_wavlist_stcmds[self.list_wavnum_stcmds[n + yushu - 1]] length=len(self.list_wavnum_stcmds)
list_symbol=self.dic_symbollist_stcmds[self.list_symbolnum_stcmds[n + yushu - 1]] filename = self.dic_wavlist_stcmds[self.list_wavnum_stcmds[(n + yushu - 1)%length]]
list_symbol=self.dic_symbollist_stcmds[self.list_symbolnum_stcmds[(n + yushu - 1)%length]]
if('Windows' == plat.system()): if('Windows' == plat.system()):
filename = filename.replace('/','\\') # windows系统下需要执行这一行对文件路径做特别处理 filename = filename.replace('/','\\') # windows系统下需要执行这一行对文件路径做特别处理