鱼C论坛

 找回密码
 立即注册
查看: 3256|回复: 12

低端基础Python编程(初学者傻蛋作业猜数游戏)

[复制链接]
发表于 2014-7-23 01:02:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
作业要求:

You are to plan and then code a number guessing game, as described by the information and sampleoutput below. Use what you have learned in class, including selection, repetition and basic function.
At the start of the program an appropriate welcome message with your name in it should be shown,
then the user will be asked to enter their name. They then choose from a menu (see sample output for
menu choices). When the game is played, the computer randomly generates a number between lower
and upper bounds (inclusive). These default to 1 and 42. The user must then guess a number. This guess
should be error-checked until the user enters a valid guess. Error checking for all inputs should include
handling non-number and blank entries only. The user’s guess is then compared to the computer’s
number, and the computer responds as below with higher or lower. When the guess is correct, the user
is congratulated, told how many turns they took and offered the choice of saving their score to a file.
When the user chooses to view the instructions from the menu, the instruction is presented. For each
play of the game, the computer randomly generates a number between the lower and upper bounds
(inclusive) and the user must guess a number. This guess should be error-checked until the user gets it
right. Error checking for all inputs should include handling non-number and blanks. The guess is then
compared to the computer’s number, and the computer responds as below with higher or lower. When
the guess is correct, the user is congratulated, told how many turns they took.
Sample output from the program is below. You should make your program match this exactly (except
for your name). Do not add or remove anything from the program even if you think it would make it
better. You must aim to have yours work and look just like this including spaces, spelling – everything.


我的第一份Python编程作业希望大家帮忙看看哪里有不对的,谢谢。


低端基础Python编程(初学者傻蛋作业).zip

861 Bytes, 下载次数: 14

py文件

小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2014-7-23 01:06:25 | 显示全部楼层
求骂,求喷,求指导{:1_1:}
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2014-7-23 09:00:01 | 显示全部楼层
如果是中文的,还可以考虑看一下……
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2014-7-23 10:02:30 | 显示全部楼层
下下来看看
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2014-7-23 10:41:18 | 显示全部楼层
a13820056939 发表于 2014-7-23 01:06
求骂,求喷,求指导

确定是中文的?:funk:
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2014-7-23 13:12:00 | 显示全部楼层
看样子lz鸟语还不错啊!
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-7-23 13:13:21 | 显示全部楼层
〆゛蓝枫り 发表于 2014-7-23 13:12
看样子lz鸟语还不错啊!

没办法,留学就是这么苦逼
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2014-7-25 13:27:02 | 显示全部楼层
这个初学者还是有点牛逼
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2015-6-5 10:55:35 | 显示全部楼层
来点别的爆料吧,国外的开发主要应用是什么
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2015-6-10 15:44:42 | 显示全部楼层
这个初学者还是有点牛逼
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2015-6-10 17:14:55 | 显示全部楼层
我现在就是到处蹭鱼币,为了下载课后题
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2015-6-11 09:18:43 | 显示全部楼层
这个。。。
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2015-6-11 10:36:40 | 显示全部楼层
我现在就是到处蹭鱼币,为了下载课后题,如果谁能发我一份 学习Python007以后 的课后题的话,那真是感激不尽了
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-11-14 19:01

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表