浏览代码

修改txt中制表符1

tanghongbin 5 年之前
父节点
当前提交
73dd498685
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Controller/FileController.py

+ 3 - 3
Controller/FileController.py

@@ -458,9 +458,9 @@ class DownloadUIDFileView(View):
             uid = item['uid__uid']
             mac = item['uid__mac']
             index = mac.rfind(':')
-            tmp = mac[0:index] + ' ' + mac[index:]
-            content += tmp + ' '
-            content += item['uid__uid']
+            tmp = mac[0:index] + '\t' + mac[index:]
+            content += tmp + '\t'
+            content += item['uid__uid'].strip()
             content += '\r\n'
 
             sheet1.write(num, 0, mac[0:index])