用户:!@查看:0 回复:0 评论:0 创建时间:2022-01-31T13:27:27
【作品展示】

【作品介绍】
一键打开喜欢的页面,合二为一,一步到位。
【作品源代码】
from gooey import Gooey,GooeyParser
import webbrowser
url1 = 'https://www.喵'
url2 = 'https://喵'
url3 = 'https://home.firefoxchina.cn/?from=extra_start'
百度搜索 = webbrowser.open(url1)
必应搜索 = webbrowser.open(url2)
火狐浏览器 = webbrowser.open(url3)
@Gooey(program_name="高端浏览器",language="chinese")
def main():
parser = GooeyParser(description = '浏览器')
a = parser.add_argument('选择浏览器',metavar=" 选择你喜欢的浏览器",choices=['百度搜索','必应搜索','火狐浏览器'])
args = parser.parse_args()
print(args,flush = True)
main()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn