BBrother commited on
Commit
0ce6e3c
1 Parent(s): e52c88f

Update v2_3.py

Browse files
Files changed (1) hide show
  1. v2_3.py +2 -2
v2_3.py CHANGED
@@ -81,8 +81,8 @@ ca = ""
81
  # 创建一个字典来存储变量名和对应的值
82
  variables = {}
83
 
84
- # 打开文件(使用绝对路径)
85
- with open('/content/BianLiang.txt', 'r') as file:
86
  for line in file:
87
  # 分割每一行,以等号为分隔符
88
  parts = line.strip().split('=')
 
81
  # 创建一个字典来存储变量名和对应的值
82
  variables = {}
83
 
84
+ # 打开文件(使用绝对路径,并指定utf-8编码)
85
+ with open('/content/BianLiang.txt', 'r', encoding='utf-8') as file:
86
  for line in file:
87
  # 分割每一行,以等号为分隔符
88
  parts = line.strip().split('=')