猫史档案馆


【Python作品分享】name and age【作品秀】

用户:元寸ginsins_con_Lee元寸ginsins_con_Lee查看:0 回复:1 评论:0 创建时间:2023-04-24T20:19:38


【作品展示】

center_image

 

【作品介绍】

名字和年龄

 

【作品源代码】

#开始进入Python的世界
a = input('What is your name?')
b = input('How old are you?')
if (b == 1):
    print('Hello,my name is Li Guancheng.You are ', a, ' ,you are ', b, ' year old.')
else:
    print('Hello,my name is Li Guancheng.You are ', a, ' ,you are ', b, ' years old.')

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
一个大帅锅一个大帅锅

“”编程猫后遗症“”

点赞0


评论