增加注释

This commit is contained in:
moyan 2024-06-18 16:50:23 +08:00
parent b67e538353
commit 26241d54a1

View File

@ -20,13 +20,14 @@ from . import web as webs
def cli(): def cli():
today = datetime.datetime.today() today = datetime.datetime.today()
if today.month == 9 and today.day == 28: if today.month == 9 and today.day == 28:
# 原神彩蛋
webbrowser.open("https://ys.mihoyo.com/") webbrowser.open("https://ys.mihoyo.com/")
util.console.print("[green]Genshinactivate[/green]") util.console.print("[green]Genshinactivate[/green]")
time.sleep(0.7) time.sleep(0.7)
util.console.print("[green]You all must download Genshin Impact.[/green]") util.console.print("[green]You all must download Genshin Impact.[/green]")
time.sleep(0.7) time.sleep(0.7)
util.console.print("Then don't use PMPT.", style="green") util.console.print("Then don't use PMPT.", style="green")
# 检测是否有pip
try: try:
import pip import pip
except ImportError: except ImportError: