猫史档案馆


【Python作品分享】A game.【作品秀】

用户:山SC ̄へ ̄山SC ̄へ ̄查看:1 回复:2 评论:1 创建时间:2020-03-22T11:18:55


【作品展示】

center_image

 

【作品介绍】

具体怎么样不要翻译就好了。

 

【作品源代码】

import easygui
import codemao
import time


#开始进入Python的世界
easygui.msgbox("Sorry,the Python Turtle Graphics has collapsed,We're working on it.")
if easygui.ynbox('Windows检测到您的地区为中国大陆,是否开启中文翻译?'):
    print('已开启中文翻译')
    print('刚刚的消息为:对不起,Python海龟图形已经停止服务')
else:
    print('Ok,the Chinese translation has been turned off for you.')
    if easygui.ynbox('Can you understand Chinese,please?', '请问您能听懂中文吗?', ('Can', 'Can‘t')):
        print('请问您为什么不选择开启中文翻译?')
        codemao.Image("D:\\存储类\\图片\\积木源代码.png").open_image()
        print('这是编程猫的积木编程源代码。')
        time.sleep(4)
        codemao.Image("D:\\存储类\\图片\\Python源代码.png").open_image()
        print('这是Python的源代码。')
        print('现在将为您保存图片。')
        codemao.Image("D:\\存储类\\图片\\积木源代码.png").save_to_desktop()
        codemao.Image("D:\\存储类\\图片\\Python源代码.png").save_to_desktop()
    else:
        print('Good Bye!It’s a game!')
        codemao.Image("D:\\存储类\\图片\\积木源代码.png").open_image()
        print("This is the Codemao's Building Block Code.")
        time.sleep(20)
        codemao.Image("D:\\存储类\\图片\\Python源代码.png").open_image()
        print('And this is a Python code.')
        print('The picture will now be saved for you。')
        codemao.Image("D:\\存储类\\图片\\积木源代码.png").save_to_desktop()
        codemao.Image("D:\\存储类\\图片\\Python源代码.png").save_to_desktop()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
蕉饼蕉饼

额 

点赞0


评论


盒子的box盒子的box

积木搭的

点赞0


评论