ZhangZhihui's Blog |
|
||
2020年5月2日
摘要:
>>> from datetime import date>>> from datetime import datetime>>> import pytz>>> import tzlocal >>> loc_tz = tzlocal.get_localzone()>>> loc_tz<DstTzIn 阅读全文
摘要:
from datetime import datetime as dt import pytz import tzlocal def get_my_timezone(): return pytz.timezone('Asia/Shanghai') def get_local_timezone(): 阅读全文
2020年5月1日
摘要:
CodeMeaningExample %a Weekday as locale’s abbreviated name. Mon %A Weekday as locale’s full name. Monday %w Weekday as a decimal number, where 0 is Su 阅读全文
2020年4月30日
摘要:
import smtplib from os.path import basename from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from ema 阅读全文
2020年4月29日
摘要:
import osfrom dotenv import load_dotenvload_dotenv(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '.flaskenv'))FLASK_ENV = 阅读全文
摘要:
阅读全文
2020年4月27日
摘要:
div { width: 100%; height: 100%; background-image: url(../images/bg.jpg); background-size: contain; background-repeat: no-repeat; background-position: 阅读全文
摘要:
div { width: 100vw; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;} 关于更多display: flex的内容可参见https: 阅读全文
摘要:
.section { clear: both; padding: 0; margin: 0;}.group:before,.group:after { content:""; display:table;}.col { display: block; float: left;}.span_3_of_ 阅读全文
2020年4月15日
摘要:
{".3gp", "video/3gpp"}, {".apk", "application/vnd.android.package-archive"}, {".asf", "video/x-ms-asf"}, {".avi", "video/x-msvideo"}, {".bin", "applic 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |