Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Signed-off-by: 陈俊仁 <chen.junren@outlook.com>
  • Loading branch information
Chen-Junren committed Apr 20, 2024
1 parent 8c07085 commit 2529ee5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QWidget, QApplication
import locale
import warnings as wr


wr.filterwarnings("ignore")
locale.setlocale(locale.LC_ALL, "chinese")
if not os.path.exists("./log"):
os.mkdir("log")
current_date = (
Expand All @@ -34,7 +39,6 @@
filemode="a",
format="%(asctime)s - %(name)s - %(levelname)-9s - %(filename)-8s : %(lineno)s line - %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
encoding="utf-8",
)


Expand Down

0 comments on commit 2529ee5

Please sign in to comment.