猫史档案馆


【Python作品分享】实例-副本【作业帖】

用户:彻夜星空彻夜星空查看:0 回复:0 评论:0 创建时间:2022-04-03T18:03:16


【作品展示】

center_image

 

【作品介绍】

sSasSasASsASasS

 

【作品源代码】

import easygui
from 数据 import *
from pizza import *
import 首页
try:
    while True:
        ax = 首页.popped()
        if ax == None:
            break
        if ax == '披萨简介':
            a = (eval(easygui.choicebox('请选择披萨的号码', choices=['1', '2', '3']))-1)
            zbc = Pizza(类型[a], 口味[a], 大小[a], 价格[a])
            zbc.output_pizza()
except ValueError:
    easygui.msgbox('ValueERROR!')
except IndexError:
    easygui.msgbox('IndexERROR!')
except :
    pass

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页