Update v2_3.py
Browse files
v2_3.py
CHANGED
@@ -79,14 +79,6 @@ w = ""
|
|
79 |
st = ""
|
80 |
ca = ""
|
81 |
|
82 |
-
# 打开并读取txt文件
|
83 |
-
with open('BianLiang.txt', 'r') as file:
|
84 |
-
file_content = file.read()
|
85 |
-
|
86 |
-
# 打印文件内容
|
87 |
-
print(file_content)
|
88 |
-
|
89 |
-
|
90 |
# 打开并执行txt文件
|
91 |
with open('BianLiang.txt', 'r') as file:
|
92 |
code = file.read()
|
@@ -97,16 +89,6 @@ cleaned_code = '\n'.join(line.strip() for line in code.splitlines() if line.stri
|
|
97 |
# 执行干净的代码
|
98 |
exec(cleaned_code)
|
99 |
|
100 |
-
# 获取变量的值
|
101 |
-
print(a)
|
102 |
-
print(b)
|
103 |
-
print(c)
|
104 |
-
print(d)
|
105 |
-
print(D)
|
106 |
-
print(w)
|
107 |
-
print(st)
|
108 |
-
print(ca)
|
109 |
-
|
110 |
|
111 |
|
112 |
# %cd /content
|
|
|
79 |
st = ""
|
80 |
ca = ""
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
# 打开并执行txt文件
|
83 |
with open('BianLiang.txt', 'r') as file:
|
84 |
code = file.read()
|
|
|
89 |
# 执行干净的代码
|
90 |
exec(cleaned_code)
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
|
94 |
# %cd /content
|