用户:
MSCopilot查看:0 回复:3 评论:0 创建时间:2022-12-28T15:23:35
【作品展示】

【作品介绍】
这是我的Wosto MP系列系统,目前已经更新到1.9.1版本。[严禁抄袭,转载请私信]
微·信:fjs321omi
QQ:15377580
【作品源代码】
# -*- 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 lodae = 0 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.2.0]') 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('您的代号错误,请重新索取代号。') break 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') print('Wosto MP.py ') print('共57MB,已用39MB.') print('|▮▮▮▮▮▮▮ |') elif nwfex == 1: print('卷C:的目录') print('Wosto MP.exe ') print('Wosto MP.py ') print(c1 + ' ') 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': 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 lodae = 0 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 ') print('Wosto MP.py ') print('共57MB,已用39MB.') print('|▮▮▮▮▮▮▮ |') elif nwfex == 1: print('卷C:的目录') print('Wosto MP.exe ') print('Wosto MP.py ') print(c1 + '.txt ') 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 中文版') """) 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 中文版')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn
MSCopilot可以提出一些建议,但是不能喷!可以提出一些建议,但是不能喷!可以提出一些建议,但是不能喷!(重要的事情说三遍)
作品链接:https://shequ.codemao.cn/work/172924245
已经打包成exe了,欢迎下载!
本程序还有用户注册功能和英文版本,英文版本更新到了1.4.2013
点赞1
评论
MSCopilot
elif v == 'SARC':
search_text = input('百度一下:') #定义搜索内容变量
url = '喵喵喵' + search_text
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; 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)点赞0
评论
MSCopilot这段代码有问题,url应该=https://www.喵/s?wd=
还有,WFZE指令需要打开我电脑上的一个HT ML文件,先不要使用。
如果非要使用的话,我把代码粘贴在下面,保存成.html文件,再把
webbrowser.open_new_tab('D:/Program/H喵L/Program/Web Finder.html')
内的路径改成所在文件的路径与名称+.html
代码:
<!DOCTYPE H喵L>
<html>
<head>
<!-- 浏览页标题-->
<title> Web Finder </title>
<base href="D:/Program/H喵L">
</head>
<body style="background-color:black;">
<div>
<!-- 大标题-背景颜色 -->
<h1 style="color:white;">Use The Web Finder to Find Web Pages</h1>
<p><hr></p>
</div>
<div>
<!-- 普通标题 -->
<h2 style="color:white;">Comprehensive portal</h2>
</div>
<div>
<ul>
<li>
<!-- 超链接 -->
<a style="color:white;" href="https://www.qq.com" target="_blank">Tencent</a>
<a style="color:white;" href="https://www.sina.com.cn" target="_blank">Sina</a>
<a style="color:white;" href="https://www.163.com" target="_blank">Netease</a>
</li>
<li>
<a style="color:white;" href="https://www.sohu.com" target="_blank">Soho</a>
<a style="color:white;" href="https://www.yahho.com" target="_blank">Yahho!</a>
<a style="color:white;" href="https://www.tom.com" target="_blank">TOM</a>
</li>
<li>
<a style="color:white;" href="https://www.china.com" target="_blank">Chinadotcom</a>
<a style="color:white;" href="https://www.xinhuanet.com" target="_blank">Xinhua</a>
<a style="color:white;" href="https://www.ifeng.com" target="_blank">Phoenix</a>
</li>
<li>
<a style="color:white;" href="https://www.eastday.com" target="_blank">East Web</a>
</ul>
</div>
<div>
<p><hr></p>
<h2 style="color:white;">Search Engines</h2>
</div>
<div>
<ul>
<li>
<a style="color:white;" href="https://www.喵" target="_blank">Baidu</a>
<a style="color:white;" href="https://www.soso.com" target="_blank">Soso</a>
<a style="color:white;" href="https://www.sogou.com" target="_blank">Sogou</a>
</li>
<li>
<a style="color:white;" href="https://www.gougou.com" target="_blank">Gougou</a>
<a style="color:white;" href="https://cn.喵" target="_blank">Bing</a>
</li>
</ul>
</div>
<div>
<p><hr></p>
<h2 style="color:white;">IT Website</h2>
</div>
<div>
<ul>
<li>
<a style="color:white;" href="https://www.pchome.net" target="_blank">Computer home</a>
<a style="color:white;" href="https://www.pcpop.com" target="_blank">Bubble Net</a>
<a style="color:white;" href="https://www.it168.com" target="_blank">IT 168</a>
</li>
<li>
<a style="color:white;" href="https://www.chinabyte.com" target="_blank">Bit Network</a>
<a style="color:white;" href="https://www.downxia.com" target="_blank">Down Xia Applacation</a>
</li>
</ul>
</div>
<div>
<p><hr></p>
<h2 style="color:white;">Commercial trade</h2>
</div>
<div>
<ul>
<li>
<a style="color:white" href="https://www.wand.com" target="_blank">WTO Trade sourse</a>
<a style="color:white" href="https://www.alibaba.com" target="_blank">Ali BaBa</a>
<a style="color:white" href="https://www.meetchina.com" target="_blank">American business network</a>
</li>
</ul>
</div>
<div>
<p><hr><p>
<p style="color:white;">At present, The Web Finder has been</p>
<p style="color:white;">Updated to Version 0.4.8. Thank you for your support!</p>
</div>
<script>window.alert("Please Support us!")</script>
</body>
</html>
点赞0
评论