We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c07085 commit 2529ee5Copy full SHA for 2529ee5
Weather.py
@@ -21,7 +21,12 @@
21
from PyQt5 import QtCore, QtGui, QtWidgets
22
from PyQt5.QtCore import Qt
23
from PyQt5.QtWidgets import QWidget, QApplication
24
+import locale
25
+import warnings as wr
26
27
+
28
+wr.filterwarnings("ignore")
29
+locale.setlocale(locale.LC_ALL, "chinese")
30
if not os.path.exists("./log"):
31
os.mkdir("log")
32
current_date = (
@@ -34,7 +39,6 @@
34
39
filemode="a",
35
40
format="%(asctime)s - %(name)s - %(levelname)-9s - %(filename)-8s : %(lineno)s line - %(message)s",
36
41
datefmt="%Y-%m-%d %H:%M:%S",
37
- encoding="utf-8",
38
42
)
43
44
0 commit comments