Skip to content

Commit 2529ee5

Browse files
authored
Add files via upload
Signed-off-by: 陈俊仁 <[email protected]>
1 parent 8c07085 commit 2529ee5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Weather.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
from PyQt5 import QtCore, QtGui, QtWidgets
2222
from PyQt5.QtCore import Qt
2323
from PyQt5.QtWidgets import QWidget, QApplication
24+
import locale
25+
import warnings as wr
2426

27+
28+
wr.filterwarnings("ignore")
29+
locale.setlocale(locale.LC_ALL, "chinese")
2530
if not os.path.exists("./log"):
2631
os.mkdir("log")
2732
current_date = (
@@ -34,7 +39,6 @@
3439
filemode="a",
3540
format="%(asctime)s - %(name)s - %(levelname)-9s - %(filename)-8s : %(lineno)s line - %(message)s",
3641
datefmt="%Y-%m-%d %H:%M:%S",
37-
encoding="utf-8",
3842
)
3943

4044

0 commit comments

Comments
 (0)