请高人帮忙写个python的小程序
实际是个小游戏要求人转轮盘下面是列子:WelcometoWheelofFortune!Thereare10slotsinyourwheel.Spinyourwheelby...
实际是个小游戏
要求人转轮盘
下面是列子:
Welcome to Wheel of Fortune!
There are 10 slots in your wheel.
Spin your wheel by entering an integer number: hello
This is not an integer greater than 0.
please enter an integer: 0
This is not an integer greater than 0.
please enter an integer: 22
The wheel is
[100, 800, 700, 200, 400, 400, 600, 700, 0, 0]
You won $700 in the Wheel of Fortune!
press enter to exit:
不是很清楚怎么让自己选的数字得到下面的分数.
比如所选1 就是100
选2 就是800
选11又回到100
谢谢 展开
要求人转轮盘
下面是列子:
Welcome to Wheel of Fortune!
There are 10 slots in your wheel.
Spin your wheel by entering an integer number: hello
This is not an integer greater than 0.
please enter an integer: 0
This is not an integer greater than 0.
please enter an integer: 22
The wheel is
[100, 800, 700, 200, 400, 400, 600, 700, 0, 0]
You won $700 in the Wheel of Fortune!
press enter to exit:
不是很清楚怎么让自己选的数字得到下面的分数.
比如所选1 就是100
选2 就是800
选11又回到100
谢谢 展开
2008-11-22
展开全部
自己改改
wheel = [100, 800, 700, 200, 400, 400, 600, 700, 0, 0]
num = input('choose a number\n');
print 'you get', wheel[(num+9)%10]
wheel = [100, 800, 700, 200, 400, 400, 600, 700, 0, 0]
num = input('choose a number\n');
print 'you get', wheel[(num+9)%10]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询