free-x commited on
Commit
7e6dfee
·
verified ·
1 Parent(s): 21945c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ def get_disk_usage():
19
  print(f"Error: {result.stderr}")
20
  else:
21
  print(result.stdout)
22
- # 将输出写入文本文件
23
  with open("111.txt", 'w') as file:
24
  file.write(result.stdout)
25
  print(f"Disk usage information written to {filename}")
@@ -35,7 +35,7 @@ def get_system_info():
35
  print(f"Machine: {platform.machine()}")
36
  print(f"Processor: {platform.processor()}")
37
  print(f"Architecture: {platform.architecture()}")
38
-
39
  get_disk_usage()
40
  get_system_info()
41
 
 
19
  print(f"Error: {result.stderr}")
20
  else:
21
  print(result.stdout)
22
+
23
  with open("111.txt", 'w') as file:
24
  file.write(result.stdout)
25
  print(f"Disk usage information written to {filename}")
 
35
  print(f"Machine: {platform.machine()}")
36
  print(f"Processor: {platform.processor()}")
37
  print(f"Architecture: {platform.architecture()}")
38
+ print(f"python: {platform.python_version()}")
39
  get_disk_usage()
40
  get_system_info()
41