mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-03-13 20:31:52 +08:00
避免GPL传染,我fo了
This commit is contained in:
parent
e0557da3cf
commit
0ce72fc4e3
28
magicDemo.py
28
magicDemo.py
@ -94,7 +94,7 @@ except ModuleNotFoundError as E:
|
|||||||
try:
|
try:
|
||||||
from msctPkgver.magicBeing import *
|
from msctPkgver.magicBeing import *
|
||||||
import requests
|
import requests
|
||||||
import zhdate
|
# import zhdate
|
||||||
except ModuleNotFoundError as E:
|
except ModuleNotFoundError as E:
|
||||||
if input(
|
if input(
|
||||||
"您需要安装以下模块才能使用这个样例\nrequests==2.28.1\nrich==12.6.0\nzhdate==0.1\n请问是否安装?(y/n):"
|
"您需要安装以下模块才能使用这个样例\nrequests==2.28.1\nrich==12.6.0\nzhdate==0.1\n请问是否安装?(y/n):"
|
||||||
@ -126,7 +126,7 @@ MainConsole.rule(
|
|||||||
)
|
)
|
||||||
|
|
||||||
nowYang = datetime.datetime.now()
|
nowYang = datetime.datetime.now()
|
||||||
nowYin = zhdate.ZhDate.from_datetime(nowYang)
|
# nowYin = zhdate.ZhDate.from_datetime(nowYang)
|
||||||
|
|
||||||
if nowYang.month == 8 and nowYang.day == 6:
|
if nowYang.month == 8 and nowYang.day == 6:
|
||||||
# 诸葛八卦生日
|
# 诸葛八卦生日
|
||||||
@ -142,18 +142,18 @@ elif nowYang.month == 4 and nowYang.day == 3:
|
|||||||
style="#0089F2 on #F0F2F4",
|
style="#0089F2 on #F0F2F4",
|
||||||
justify="center",
|
justify="center",
|
||||||
)
|
)
|
||||||
elif nowYin.lunar_month == 12 and nowYin.lunar_day == 30:
|
# elif nowYin.lunar_month == 12 and nowYin.lunar_day == 30:
|
||||||
MainConsole.print(
|
# MainConsole.print(
|
||||||
"[#FF3432 on #121110]除夕到了,你是否与家人共处,融融其乐?",
|
# "[#FF3432 on #121110]除夕到了,你是否与家人共处,融融其乐?",
|
||||||
style="#FF3432 on #121110",
|
# style="#FF3432 on #121110",
|
||||||
justify="center",
|
# justify="center",
|
||||||
)
|
# )
|
||||||
elif nowYin.leap_month == 1 and nowYin.lunar_day in range(1, 9):
|
# elif nowYin.leap_month == 1 and nowYin.lunar_day in range(1, 9):
|
||||||
MainConsole.print(
|
# MainConsole.print(
|
||||||
"[#FFF642 on #FF3432]春节快乐!\n在你使用音·创的时候,是不是也要去感受一下喜庆的氛围呢?",
|
# "[#FFF642 on #FF3432]春节快乐!\n在你使用音·创的时候,是不是也要去感受一下喜庆的氛围呢?",
|
||||||
style="#FFF642 on #FF3432",
|
# style="#FFF642 on #FF3432",
|
||||||
justify="center",
|
# justify="center",
|
||||||
)
|
# )
|
||||||
else:
|
else:
|
||||||
# 显示箴言部分
|
# 显示箴言部分
|
||||||
MainConsole.print(
|
MainConsole.print(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user