用户:
MSCopilot查看:2 回复:3 评论:2 创建时间:2022-12-28T14:54:31
我的Wosto MP开源了!
以下为源代码(1.9.2版本,无缩进)
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 10 21:14:32 2022
@author: fangg
"""
import random
import math
import time
import turtle
import calendar
import pyttsx3
import datetime
import webbrowser
import requests
import os
import sys
nwfex = 0
other = ['Guess','Administrator','Wosto','admin','codeForge']
otherpassword = [1234,1000,0000,2022,865389871982112920130314]
world = False
othen = 0
per = False
code = False
def Wristestroberry(Filename,file):
with open(Filename,'wt') as filewrite:
filewrite.write(file)
def Readstroberry(Filename):
with open(Filename,'rt') as fileread:
fileread.close()
return fileread.read()
def Login():
try:
Readstroberry('Lauv.txt')
userold = str(input('请输入用户名:'))
passwd = str(input('请输入密码:'))
if userold == Readstroberry()[0:3]:
if passwd == Readstroberry()[5:-1]:
print('密码正确!')
othen = Readstroberry()[0:3]
else:
print('密码错误!')
else:
print('用户不存在!')
except:
try:
username = str(input('请输入用户名:'))
userpasswd = int(input('请输入密码:'))
if username == other[0]:
if userpasswd == otherpassword[0]:
print('密码正确!')
othen = 0
per = True
else:
print('密码错误!')
elif username == other[1]:
if userpasswd == otherpassword[1]:
print('密码正确!')
othen = 1
per = True
else:
print('密码错误!')
elif username == other[2]:
if userpasswd == otherpassword[2]:
print('密码正确!')
othen = 2
else:
print('密码错误!')
elif username == other[3]:
if userpasswd == otherpassword[3]:
print('密码正确!')
othen = 3
else:
print('密码错误!')
elif username == other[4]:
if userpasswd == otherpassword[4]:
codeword = input('请输入内测代号:')
if codeword == 'FangjingshuoNeiCe':
print('代号正确!')
print('感谢您为Fangjingshuo进行内测!')
code = True
else:
print('您的代号错误,请重新索取代号。')
else:
print('用户不存在!')
except:
print('密码错误!')
print('Fangjingshuo Wosto[版本 MP.1.9.2.0]')
print('(c)Fangjingshuo Corporation. 保留所有权利。')
while True:
print('')
a = input('C:/Users/' + other[othen] + '/>')
v = a.upper() # 设置v的值是a的大写
if v == 'MATH':
print('MATH库正在安装中···')
print('-',end='')
time.sleep(1) # 等待1秒(Time模块)
print('-',end='')
time.sleep(1)
print('-',end='')
time.sleep(1)
print('-')
time.sleep(1)
print('安装完成!')
while True:
matha = input('(MATH)C:/Users/' + other[othen] + '/>')
mathv = matha.upper()
if mathv == 'PLUS':
a1 = float(input('第一个数字是多少?'))
a2 = float(input('第二个数字是多少?'))
a3 = a1 + a2
print(f"{a1} + {a2} = {a3}")
elif mathv == 'MINE':
b1 = float(input('第一个数字是多少?'))
b2 = float(input('第二个数字是多少?'))
b3 = b1 - b2
print(f"{b1} - {b2} = {b3}")
elif mathv == 'TAME':
d1 = float(input('第一个数字是多少?'))
d2 = float(input('第二个数字是多少?'))
d3 = d1 * d2
print(f"{d1} × {d2} = {d3}")
elif mathv == 'DIVI':
try:
e1 = float(input('第一个数字是多少?'))
e2 = float(input('第二个数字是多少?'))
e3 = e1 / e2
print(f"{e1} ÷ {e2} = {e3}")
except ZeroDivisionError:
print('错误 Math0x0000001,除数不能为零!')
world = True
break
elif mathv == 'MUMA':
f1 = float(input('第一个数字是多少?'))
f2 = float(input('第二个数字是多少?'))
f3 = f1 ** f2
print(f"{f1} ^ {f2} = {f3}")
elif mathv == 'QYSJ':
g1 = float(input('第一个数字是多少?'))
g2 = float(input('第二个数字是多少?'))
g3 = g2 % g1
print(f"{g1} % {g2} = {g3}")
elif mathv == 'GMGE':
h1 = str(input('请输入函数类型?'))
if h1 == 'sin':
math.sin(input('请输入角度(不包含°标志:):'))
elif h1 == 'cos':
math.cos(input('请输入角度(不包含°标志):'))
elif h1 == 'tan':
math.tan(input('请输入角度(不包含°标志):'))
elif h1 == 'sinh':
math.sinh(input('请输入角度(不包含°标志)'))
elif h1 == 'cosh':
math.cosh(input('请输入角度(不包含°标志)'))
elif h1 == 'tanh':
math.tanh(input('请输入角度(不包含°标志)'))
elif h1 == 'asin':
math.asin(input('请输入角度(不包含°标志)'))
elif h1 == 'asinh':
math.asinh(input('请输入角度(不包含°标志)'))
elif h1 == 'acos':
math.acos(input('请输入角度(不包含°标志)'))
elif h1 == 'acosh':
math.acosh(input('请输入角度(不包含°标志)'))
elif h1 == 'atan':
math.atan(input('请输入角度(不包含°标志)'))
elif h1 == 'atanh':
math.atanh(input('请输入角度(不包含°标志)'))
else:
print('不懂您的意思。')
elif mathv == 'SQRT':
i1 = math.sqrt(input('请输入需要求算平方根的数:'))
print(f"算出平方根是:{i1}")
elif mathv == 'PIMM':
print('π的值大约是3.141592653589793238462喵33832795.')
print('感谢使用MATH库!')
print('MATH库赞助Wosto MP,唯一版本只能在Wosto MP中使用。')
elif mathv == 'BEMM':
print('e的值大约是2.7182818284590452353602874713527。')
print('感谢使用MATH库!')
print('MATH库赞助Wosto MP,唯一版本只能在Wosto MP中使用。')
elif mathv == 'QJDZ':
ad = int(input('请输入需要求绝对值的数:'))
af = ad
abs(ad)
print(f'abs({af}) = {ad}')
elif mathv == 'HELP':
print('MATH库可用指令表:')
print('PLUS 将输入的数进行加法运算')
print('MINE 将输入的数进行减法运算')
print('TAME 将输入的数进行乘法运算')
print('DIVI 将输入的数进行除法运算')
print('HELP 获取MATH库的指令帮助')
print('QJDZ 获取输入的数的绝对值')
print('PIMM 获取Π的部分值')
print('BEMM 获取E的部分值')
print('EXIT 退出MATH库')
print('GMGE 三角函数计算器')
print('SQRT 求平方根工具')
print('MUMA 将输入的数进行幕运算')
print('QYSJ 求出除法余数')
print('版本:MATH1.5 CHINA')
print('感谢您使用MATH库!')
elif mathv == 'EXIT':
print('退出成功!')
break
else:
print('不懂您的意思。')
print('版本:MATH1.5 CHINA')
print('您可以通过输入HELP了解MATH库可用指令,或通过输入Exit退出.')
elif v == 'WEIT':
print('体重管理系统正在安装中……')
print('-',end='')
time.sleep(1)
print('-',end='')
time.sleep(1)
print('-',end='')
time.sleep(1)
print('-')
time.sleep(1)
print('安装完成!')
height = float(input('请输入您的身高(M):'))
weight = float(input('请输入您的体重(KG)'))
bmi = weight / (height * height) #Bmi指数为体重÷高度×高度
print('您的BMI指数为:' + str(bmi))
if bmi < 18.5:
print('您的体重过轻 ~@_@`')
elif bmi < 24.9:
print('正常范围,注意保持 (^_^)')
elif bmi < 29.9:
print('您的体重过重 -_-#')
elif bmi >= 29.9:
print('肥胖 T_T')
elif v == 'GAME':
print('我们来玩猜数字的游戏吧!')
print('最大为100,最小为1.')
game = random.randint(1,100) # 设置game的值是1-100之间的随机数(random模块)
gamea = 0
f = 0
try:
while gamea != game:
gamea = float(input('猜一猜它是几?'))
if gamea == game:
print('你猜中了!')
f = f + 1
print(f'你一共猜了{f}次。')
if f == 1:
print('你太厉害了!一次就猜中了!')
break #退回主界面
elif f <= 5:
print('你猜的可真快!')
break
elif f <= 10:
print('你猜得有点慢呢!')
break
else:
print('你猜得太慢了!')
break
elif gamea > 100:
print('提示:最大为100,最小为1.')
continue
elif gamea < 1:
print('提示:最大为100,最小为1.')
continue
elif gamea > game:
print('往小猜·')
f = f + 1
continue
elif gamea < game:
print('往大猜。')
f = f + 1
continue
except ValueError:
print('退出游戏。')
break
elif v == 'CICE':
turtle.screensize(1000, 1000)
turtle.colormode(255)
for i in range(1, 10):
for j in range(1, 10):
turtle.pencolor((j * 26, i * 26, 0))
turtle.penup()
turtle.goto(j * 100 - 500, 470 - i * 100)
turtle.pendown()
turtle.circle(30)
elif v == 'SAYW':
engine = pyttsx3.init()
engine.say(input('请输入你要朗读的话:')) #朗读用户输入的内容(pyttsx3模块)
engine.runAndWait()
print('朗读完毕。')
elif v == 'CLDR':
x = datetime.datetime.now() #设置x为当前时间(datetime模块)
year = int(x.year)
month = int(x.month)
print(calendar.month(year,month)) #显示日历(calendar模块)
elif v == 'ADMS':
othera = input('请输入旧用户名:')
if othera == other:
other = input('请输入新用户名:')
print('修改用户名成功!')
elif othera != other:
print('修改用户名失败,问题0x0000001,旧用户名错误。')
else:
print('修改用户名失败,问题0x000000A,致命错误!')
exit()
elif v == 'TIME':
t0 = time.time()
for i in range(1,20):
print('现在时间:', time.strftime('%Y-%m-%d %H-%M-%S', \
time.localtime(time.time())))
time.sleep(1)
elif v == 'NWFE':
nwfex = 1
cia = input('请输入信息:')
FilePath = input('请输入文件名:') + ".txt"
with open(FilePath,'w') as filewrite:
filewrite.write(cia)
c1 = FilePath
elif v == 'DIRW':
if per == True:
if nwfex == 0:
print('卷C:的目录')
print('Wosto MP.exe <DIR>')
print('Wosto MP.py <DIR>')
print('共57MB,已用39MB.')
print('|▮▮▮▮▮▮▮ |')
elif nwfex == 1:
print('卷C:的目录')
print('Wosto MP.exe <DIR>')
print('Wosto MP.py <DIR>')
print(c1 + ' <DIR>')
print('共57MB,已用57MB.')
print('|▮▮▮▮▮▮▮▮▮▮▮|')
else:
print('对不起,您没有管喵权限,不能使用此功能。')
elif v == 'EXIT':
break
elif v == 'DLET':
try:
print ("目录为: %s" %os.listdir(os.getcwd()))
os.remove(cia + ".txt")
print ("移除后 : %s" %os.listdir(os.getcwd()))
except OSError:
print('错误!未找到文件!')
continue
else:
print('删除成功!')
nwfex = 0
c1 = 0
finally:
print('感谢使用此功能!')
elif v == "PHOT":
print('__________')
print('| \ / |')
print('| _\__/ |')
print('|/ \ |')
print('| 山 \ |')
print('|_______\_|')
print(' 火山爆发')
elif v == 'CODE':
if other[othen] == 4:
print('感谢您的内测!')
print("""
import random
import math
import time
import turtle
import calendar
import pyttsx3
import datetime
import webbrowser
import requests
import os
import sys
nwfex = 0
other = ['Guess','Administrator','Wosto','admin','codeForge']
otherpassword = [1234,1000,0000,2022,865389871982112920130314]
world = False
othen = 0
loda = 0
per = False
code = False
engine = pyttsx3.init()
def Wristestroberry(Filename,file):
with open(Filename,'wt') as filewrite:
filewrite.write(file)
def Readstroberry(Filename):
with open(Filename,'rt') as fileread:
fileread.close()
return fileread.read()
print('Fangjingshuo Wosto[版本 MP.1.9.1.7]')
print('(c)Fangjingshuo Corporation. 保留所有权利。')
try:
while loda < 3:
Readstroberry('Lauv.txt')
userold = str(input('请输入用户名:'))
passwd = str(input('请输入密码:'))
if loda >= 3:
print('密码连续3次输入错误,已转为系统用户!')
raise NameError
if userold == Readstroberry()[0:3]:
if passwd == Readstroberry()[5:-1]:
print('密码正确!')
othen = Readstroberry()[0:3]
else:
print('密码错误!')
loda += 1
continue
else:
print('用户不存在!')
loda += 1
continue
except:
while lodae < 3:
if lodae >= 3:
print('对不起,您的密码输入次数已用完,请得知用户名与密码后再登陆。')
time.sleep(3)
sys.exit(0)
try:
username = str(input('请输入用户名:'))
userpasswd = int(input('请输入密码:'))
if username == other[0]:
if userpasswd == otherpassword[0]:
print('密码正确!')
othen = 0
per = True
break
else:
print('密码错误!')
lodae += 1
continue
elif username == other[1]:
if userpasswd == otherpassword[1]:
print('密码正确!')
othen = 1
per = True
break
else:
print('密码错误!')
lodae += 1
continue
elif username == other[2]:
if userpasswd == otherpassword[2]:
print('密码正确!')
othen = 2
break
else:
print('密码错误!')
lodae += 1
continue
elif username == other[3]:
if userpasswd == otherpassword[3]:
print('密码正确!')
othen = 3
break
else:
print('密码错误!')
lodae += 1
continue
elif username == other[4]:
if userpasswd == otherpassword[4]:
codeword = input('请输入内测代号:')
if codeword == 'FangjingshuoNeiCe':
print('代号正确!')
print('感谢您为Fangjingshuo进行内测!')
code = True
else:
print('用户不存在!')
lodae += 1
continue
except:
print('密码错误!')
lodae += 1
continue
while True:
print('')
a = input('C:/Users/' + other[othen] + '/>')
v = a.upper() # 设置v的值是a的大写
if v == 'MATH':
print('MATH库正在安装中···')
print('-',end='')
time.sleep(1) # 等待1秒(Time模块)
print('-',end='')
time.sleep(1)
print('-',end='')
time.sleep(1)
print('-')
time.sleep(1)
print('安装完成!')
while True:
matha = input('(MATH)C:/Users/' + other[othen] + '/>')
mathv = matha.upper()
if mathv == 'PLUS':
a1 = float(input('第一个数字是多少?'))
a2 = float(input('第二个数字是多少?'))
a3 = a1 + a2
print(f"{a1} + {a2} = {a3}")
elif mathv == 'MINE':
b1 = float(input('第一个数字是多少?'))
b2 = float(input('第二个数字是多少?'))
b3 = b1 - b2
print(f"{b1} - {b2} = {b3}")
elif mathv == 'TAME':
d1 = float(input('第一个数字是多少?'))
d2 = float(input('第二个数字是多少?'))
d3 = d1 * d2
print(f"{d1} × {d2} = {d3}")
elif mathv == 'DIVI':
try:
e1 = float(input('第一个数字是多少?'))
e2 = float(input('第二个数字是多少?'))
e3 = e1 / e2
print(f"{e1} ÷ {e2} = {e3}")
except ZeroDivisionError:
print('错误 Math0x0000001,除数不能为零!')
world = True
break
elif mathv == 'MUMA':
f1 = float(input('第一个数字是多少?'))
f2 = float(input('第二个数字是多少?'))
f3 = f1 ** f2
print(f"{f1} ^ {f2} = {f3}")
elif mathv == 'QYSJ':
g1 = float(input('第一个数字是多少?'))
g2 = float(input('第二个数字是多少?'))
g3 = g2 % g1
print(f"{g1} % {g2} = {g3}")
elif mathv == 'GMGE':
h1 = str(input('请输入函数类型?'))
if h1 == 'sin':
math.sin(input('请输入角度(不包含°标志:):'))
elif h1 == 'cos':
math.cos(input('请输入角度(不包含°标志):'))
elif h1 == 'tan':
math.tan(input('请输入角度(不包含°标志):'))
elif h1 == 'sinh':
math.sinh(input('请输入角度(不包含°标志)'))
elif h1 == 'cosh':
math.cosh(input('请输入角度(不包含°标志)'))
elif h1 == 'tanh':
math.tanh(input('请输入角度(不包含°标志)'))
elif h1 == 'asin':
math.asin(input('请输入角度(不包含°标志)'))
elif h1 == 'asinh':
math.asinh(input('请输入角度(不包含°标志)'))
elif h1 == 'acos':
math.acos(input('请输入角度(不包含°标志)'))
elif h1 == 'acosh':
math.acosh(input('请输入角度(不包含°标志)'))
elif h1 == 'atan':
math.atan(input('请输入角度(不包含°标志)'))
elif h1 == 'atanh':
math.atanh(input('请输入角度(不包含°标志)'))
else:
print('不懂您的意思。')
elif mathv == 'SQRT':
i1 = math.sqrt(input('请输入需要求算平方根的数:'))
print(f"算出平方根是:{i1}")
elif mathv == 'PIMM':
print('π的值大约是3.141592653589793238462喵33832795.')
print('感谢使用MATH库!')
print('MATH库赞助Wosto MP,唯一版本只能在Wosto MP中使用。')
elif mathv == 'BEMM':
print('e的值大约是2.7182818284590452353602874713527。')
print('感谢使用MATH库!')
print('MATH库赞助Wosto MP,唯一版本只能在Wosto MP中使用。')
elif mathv == 'QJDZ':
ad = int(input('请输入需要求绝对值的数:'))
af = ad
abs(ad)
print(f'abs({af}) = {ad}')
elif mathv == 'HELP':
print('MATH库可用指令表:')
print('PLUS 将输入的数进行加法运算')
print('MINE 将输入的数进行减法运算')
print('TAME 将输入的数进行乘法运算')
print('DIVI 将输入的数进行除法运算')
print('HELP 获取MATH库的指令帮助')
print('QJDZ 获取输入的数的绝对值')
print('PIMM 获取Π的部分值')
print('BEMM 获取E的部分值')
print('EXIT 退出MATH库')
print('GMGE 三角函数计算器')
print('SQRT 求平方根工具')
print('MUMA 将输入的数进行幕运算')
print('QYSJ 求出除法余数')
print('版本:MATH1.5 CHINA')
print('感谢您使用MATH库!')
elif mathv == 'EXIT':
print('退出成功!')
break
else:
print('不懂您的意思。')
print('版本:MATH1.5 CHINA')
print('您可以通过输入HELP了解MATH库可用指令,或通过输入Exit退出.')
elif v == 'WEIT':
print('体重管理系统正在安装中……')
print('-',end='')
time.sleep(1)
print('-',end='')
time.sleep(1)
print('-',end='')
time.sleep(1)
print('-')
time.sleep(1)
print('安装完成!')
height = float(input('请输入您的身高(M):'))
weight = float(input('请输入您的体重(KG)'))
bmi = weight / (height * height) #Bmi指数为体重÷高度×高度
print('您的BMI指数为:' + str(bmi))
if bmi < 18.5:
print('您的体重过轻 ~@_@`')
elif bmi < 24.9:
print('正常范围,注意保持 (^_^)')
elif bmi < 29.9:
print('您的体重过重 -_-#')
elif bmi >= 29.9:
print('肥胖 T_T')
elif v == 'GAME':
print('我们来玩猜数字的游戏吧!')
print('最大为100,最小为1.')
game = random.randint(1,100) # 设置game的值是1-100之间的随机数(random模块)
gamea = 0
f = 0
try:
while gamea != game:
gamea = float(input('猜一猜它是几?'))
if gamea == game:
print('你猜中了!')
f = f + 1
print(f'你一共猜了{f}次。')
if f == 1:
print('你太厉害了!一次就猜中了!')
break #退回主界面
elif f <= 5:
print('你猜的可真快!')
break
elif f <= 10:
print('你猜得有点慢呢!')
break
else:
print('你猜得太慢了!')
break
elif gamea > 100:
print('提示:最大为100,最小为1.')
continue
elif gamea < 1:
print('提示:最大为100,最小为1.')
continue
elif gamea > game:
print('往小猜·')
f = f + 1
continue
elif gamea < game:
print('往大猜。')
f = f + 1
continue
except ValueError:
print('退出游戏。')
break
elif v == 'CICE':
turtle.screensize(1000, 1000)
turtle.colormode(255)
for i in range(1, 10):
for j in range(1, 10):
turtle.pencolor((j * 26, i * 26, 0))
turtle.penup()
turtle.goto(j * 100 - 500, 470 - i * 100)
turtle.pendown()
turtle.circle(30)
elif v == 'SAYW':
engine.say(input('请输入你要朗读的话:')) #朗读用户输入的内容(pyttsx3模块)
engine.runAndWait()
print('朗读完毕。')
elif v == 'CLDR':
x = datetime.datetime.now() #设置x为当前时间(datetime模块)
year = int(x.year)
month = int(x.month)
print(calendar.month(year,month)) #显示日历(calendar模块)
elif v == 'ADMS':
othera = input('请输入旧用户名:')
if othera == other:
other = input('请输入新用户名:')
print('修改用户名成功!')
elif othera != other:
print('修改用户名失败,问题0x0000001,旧用户名错误。')
else:
print('修改用户名失败,问题0x000000A,致命错误!')
exit()
elif v == 'TIME':
t0 = time.time()
for i in range(1,20):
print('现在时间:', time.strftime('%Y-%m-%d %H-%M-%S', \
time.localtime(time.time())))
time.sleep(1)
elif v == 'NWFE':
nwfex = 1
cia = input('请输入信息:')
FilePath = input('请输入文件名:') + ".txt"
with open(FilePath,'w') as filewrite:
filewrite.write(cia)
c1 = FilePath
elif v == 'DIRW':
if per == True:
if nwfex == 0:
print('卷C:的目录')
print('Wosto MP.exe <DIR>')
print('Wosto MP.py <DIR>')
print('共57MB,已用39MB.')
print('|▮▮▮▮▮▮▮ |')
elif nwfex == 1:
print('卷C:的目录')
print('Wosto MP.exe <DIR>')
print('Wosto MP.py <DIR>')
print(c1 + '.txt <DIR>')
print('共57MB,已用57MB.')
print('|▮▮▮▮▮▮▮▮▮▮▮|')
else:
print('对不起,您没有管喵权限,不能使用此功能。')
elif v == 'EXIT':
break
elif v == 'DLET':
try:
print ("目录为: %s" %os.listdir(os.getcwd()))
os.remove(FilePath + ".txt")
print ("移除后 : %s" %os.listdir(os.getcwd()))
except OSError:
print('错误!未找到文件!')
continue
else:
print('删除成功!')
nwfex = 0
c1 = 0
finally:
print('感谢使用此功能!')
elif v == "PHOT":
print('__________')
print('| \ / |')
print('| _\__/ |')
print('|/ \ |')
print('| 山 \ |')
print('|_______\_|')
print(' 火山爆发')
elif v == 'WFZE':
print('欢迎使用 Web Finder 英文版,\n在这里你可以找到很多的网站,是个网站查找器。')
print('Web Finder同样是Fangjingshuo制作的。')
webbrowser.open_new_tab('D:/Program/H喵L/Program/Web Finder.html')
continue
if nwfex == 1:
print('C:的目录:')
print('C:.')
print('|-Programs(x86)')
print(' |-Math_setup.exe')
print(' |-Weight_setup.exe')
print('|-Users')
print(' |-Decoments')
print(f" |-{c1}.txt")
print(' |-PowerShell')
print(' |-Video')
print(' |-Photo')
print(' |-CHINA')
print(' |-Wifi')
print(' |-DESKTOP-7B0NSVT')
elif nwfex == 0:
print('C:的目录:')
print('C:.')
print('|-Programs(x86)')
print(' |-Math_setup.exe')
print(' |-Weight_setup.exe')
print('|-Users')
print(' |-Decoments')
print(' |-PowerShell')
print(' |-Video')
print(' |-Photo')
print(' |-CHINA')
print(' |-Wifi')
print(' |-DESKTOP-7B0NSVT')
elif v == 'SARC':
search_text = input('百度一下:') #定义搜索内容变量
url = 'https://www.喵/s?wd=' + search_text
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win喵; x喵; rv:92.0) Gecko/20100101 Firefox/92.0',}
response = requests.get(url=url, headers=headers)
FileName = 'Search Baidu.html'
with open(FileName,'w',encoding='utf-8') as FileWriteSearchBaidu:
FileWriteSearchBaidu.write(response.text)
webbrowser.open(FileName)
elif v == 'FILE':
if nwfex == 0:
print('没有文件可供查看!')
elif nwfex == 1:
print('')
print(FilePath)
print(cia)
continue
elif v == 'HELP':
if code == False:
print('可用指令表:')
print('MATH 开启数学计算模式')
print('WEIT 开启体重管理模式')
print('HELP 获取指令的帮助')
print('GAME 玩一个简单游戏')
print('DIRW 查看临时文件')
print('NWFE 新建一个文件与临时文件')
print('TREE 以树状图方式显示文件')
print('EXIT 退出Wosto MP')
print('CICE 观看圆圈动画视频')
print('DLET 删除临时文件')
print('TIME 查看当前时间')
print('PHOT 查看所有照片')
print('ADMS 修改用户名称')
print('WFZE 启动Web Finder')
print('CLDR 显示输入年月的日历')
print('SAYW 朗读输入的内容')
print('SARC 百度一下输入的内容')
print('FILE 查看已保存的文件')
print('版本:Wosto MP 1.9-Windows 中文版')
print('感谢您的使用!')
else:
print('可用指令表:')
print('MATH 开启数学计算模式')
print('WEIT 开启体重管理模式')
print('HELP 获取指令的帮助')
print('GAME 玩一个简单游戏')
print('DIRW 查看临时文件')
print('NWFE 新建一个文件与临时文件')
print('TREE 以树状图方式显示文件')
print('EXIT 退出Wosto MP')
print('CICE 观看圆圈动画视频')
print('DLET 删除临时文件')
print('TIME 查看当前时间')
print('PHOT 查看所有照片')
print('ADMS 修改用户名称')
print('WFZE 启动Web Finder')
print('CLDR 显示输入年月的日历')
print('SAYW 朗读输入的内容')
print('SARC 百度一下输入的内容')
print('CODE 查看Wosto MP的源代码')
print('FILE 查看已保存的文件')
print('版本:Wosto MP 1.9-Windows 中文版')
print('感谢您的内测!')
elif world == True:
raise
else:
print(f"'{v}'不是可用或有效命令,")
print('也不是可运行的程序或方法。')
print('输入HELP了解可用指令。')
print('版本:Wosto MP 1.8-Windows 中文版')
""")
else:
print('对不起,您没有参加Fang内测。')
elif v == 'WFZE':
print('欢迎使用 Web Finder 英文版,\n在这里你可以找到很多的网站,是个网站查找器。')
print('Web Finder同样是Fangjingshuo制作的。')
webbrowser.open_new_tab('D:/Program/H喵L/Program/Web Finder.html')
continue
if nwfex == 1:
print('C:的目录:')
print('C:.')
print('|-Programs(x86)')
print(' |-Math_setup.exe')
print(' |-Weight_setup.exe')
print('|-Users')
print(' |-Decoments')
print(f" |-{c1}.txt")
print(' |-PowerShell')
print(' |-Video')
print(' |-Photo')
print(' |-CHINA')
print(' |-Wifi')
print(' |-DESKTOP-7B0NSVT')
elif nwfex == 0:
print('C:的目录:')
print('C:.')
print('|-Programs(x86)')
print(' |-Math_setup.exe')
print(' |-Weight_setup.exe')
print('|-Users')
print(' |-Decoments')
print(' |-PowerShell')
print(' |-Video')
print(' |-Photo')
print(' |-CHINA')
print(' |-Wifi')
print(' |-DESKTOP-7B0NSVT')
elif v == 'SARC':
search_text = input('百度一下:') #定义搜索内容变量
url = 'https://www.喵/s?wd=' + search_text
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win喵; x喵; rv:92.0) Gecko/20100101 Firefox/92.0',}
response = requests.get(url=url, headers=headers)
FileName = 'Search Baidu.html'
with open(FileName,'w',encoding='utf-8') as FileWriteSearchBaidu:
FileWriteSearchBaidu.write(response.text)
webbrowser.open(FileName)
elif v == 'FILE':
if nwfex == 0:
print('没有文件可供查看!')
elif nwfex == 1:
print('')
print(FilePath)
print(cia)
continue
elif v == 'HELP':
if code == False:
print('可用指令表:')
print('MATH 开启数学计算模式')
print('WEIT 开启体重管理模式')
print('HELP 获取指令的帮助')
print('GAME 玩一个简单游戏')
print('DIRW 查看临时文件')
print('NWFE 新建一个文件与临时文件')
print('TREE 以树状图方式显示文件')
print('EXIT 退出Wosto MP')
print('CICE 观看圆圈动画视频')
print('DLET 删除临时文件')
print('TIME 查看当前时间')
print('PHOT 查看所有照片')
print('ADMS 修改用户名称')
print('WFZE 启动Web Finder')
print('CLDR 显示输入年月的日历')
print('SAYW 朗读输入的内容')
print('SARC 百度一下输入的内容')
print('FILE 查看已保存的文件')
print('版本:Wosto MP 1.9-Windows 中文版')
print('感谢您的使用!')
else:
print('可用指令表:')
print('MATH 开启数学计算模式')
print('WEIT 开启体重管理模式')
print('HELP 获取指令的帮助')
print('GAME 玩一个简单游戏')
print('DIRW 查看临时文件')
print('NWFE 新建一个文件与临时文件')
print('TREE 以树状图方式显示文件')
print('EXIT 退出Wosto MP')
print('CICE 观看圆圈动画视频')
print('DLET 删除临时文件')
print('TIME 查看当前时间')
print('PHOT 查看所有照片')
print('ADMS 修改用户名称')
print('WFZE 启动Web Finder')
print('CLDR 显示输入年月的日历')
print('SAYW 朗读输入的内容')
print('SARC 百度一下输入的内容')
print('CODE 查看Wosto MP的源代码')
print('FILE 查看已保存的文件')
print('版本:Wosto MP 1.9-Windows 中文版')
print('感谢您的内测!')
elif world == True:
raise
else:
print(f"'{a}'不是可用或有效命令,")
print('也不是可运行的程序或方法。')
print('输入HELP了解可用指令。')
print('版本:Wosto MP 1.8-Windows 中文版')