Update v2_3.py
Browse files
v2_3.py
CHANGED
|
@@ -1,13 +1,5 @@
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
|
| 3 |
-
import binascii
|
| 4 |
-
import os
|
| 5 |
-
import subprocess
|
| 6 |
-
import wget
|
| 7 |
-
import fileinput
|
| 8 |
-
import requests
|
| 9 |
-
import datetime
|
| 10 |
-
|
| 11 |
"""“SD_CLSA_web{t}_colab_ipynb” 修复V2.2.ipynb
|
| 12 |
|
| 13 |
Automatically generated by Colaboratory.
|
|
@@ -70,6 +62,15 @@ Original file is located at
|
|
| 70 |
"""
|
| 71 |
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
# 初始化变量
|
| 74 |
a = ""
|
| 75 |
b = ""
|
|
@@ -98,6 +99,16 @@ current_time = datetime.datetime.now()
|
|
| 98 |
t = f"{current_time.hour:02d}_{current_time.minute:02d}"
|
| 99 |
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
# %cd /bushu
|
| 103 |
# %env TF_CPP_MIN_LOG_LEVEL=1
|
|
|
|
| 1 |
# -*- coding: utf-8 -*-
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"""“SD_CLSA_web{t}_colab_ipynb” 修复V2.2.ipynb
|
| 4 |
|
| 5 |
Automatically generated by Colaboratory.
|
|
|
|
| 62 |
"""
|
| 63 |
|
| 64 |
|
| 65 |
+
import binascii
|
| 66 |
+
import os
|
| 67 |
+
import subprocess
|
| 68 |
+
import wget
|
| 69 |
+
import fileinput
|
| 70 |
+
import requests
|
| 71 |
+
import datetime
|
| 72 |
+
|
| 73 |
+
|
| 74 |
# 初始化变量
|
| 75 |
a = ""
|
| 76 |
b = ""
|
|
|
|
| 99 |
t = f"{current_time.hour:02d}_{current_time.minute:02d}"
|
| 100 |
|
| 101 |
|
| 102 |
+
# 创建文件名随机的文件夹
|
| 103 |
+
time_command = f"mkdir -p /bushu/{t}"
|
| 104 |
+
|
| 105 |
+
try:
|
| 106 |
+
subprocess.run(time_command, shell=True, check=True)
|
| 107 |
+
print(f"成功创建目录:/bushu/{t}")
|
| 108 |
+
except subprocess.CalledProcessError as e:
|
| 109 |
+
print(f"创建目录失败:{e}")
|
| 110 |
+
|
| 111 |
+
|
| 112 |
|
| 113 |
# %cd /bushu
|
| 114 |
# %env TF_CPP_MIN_LOG_LEVEL=1
|