From 3f9174e7216cf991f3499e04611e17e151c018a8 Mon Sep 17 00:00:00 2001 From: ZYX Date: Sun, 30 Jun 2024 03:03:11 +0800 Subject: [PATCH] csv gb2312 --- diver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diver.py b/diver.py index 32cd150..a73949a 100644 --- a/diver.py +++ b/diver.py @@ -177,7 +177,7 @@ def select_difficulty(self): self.click_position([125, 175+int((self.diffi-1)*(605-175)/4)]) def read_csv(self, file_path, name): - with open(file_path, mode='r', newline='') as file: + with open(file_path, mode='r', newline='', encoding='cp936') as file: reader = csv.reader(file) next(reader) if name == 'char':