修改 手动统计结果 得一处bug

This commit is contained in:
weiye.wang 2024-04-18 20:41:44 +08:00
parent ee34765f1e
commit 7e5041eff7
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class MyWindow(QWidget,Ui_Form):
linedata = re.sub(r"\s+","\t",line)
usage = linedata.split("\t")
id = usage.pop(0)
usagestr = "\t".join([f"{u:.3f}" for u in usage])
usagestr = "\t".join([f"{float(u):.3f}" for u in usage])
output += "%s\n%s\t%s\t%s\n\n"%(id.zfill(6),date,classname,usagestr)
SaveTextFile(output,metadatafilepath)
os.system(f"code {metadatafilepath}")