6
37
613
高级会员
def jump (height,planet): if planet == '月球': result = height * 6 if planet == '火星': result = height * 2.5 if planet == '木星': result = height * 0.4 if planet == '老八': result = height * 1 sentence = '你可以在' + planet + '跳' + '米' print (sentence) jump (1,'老八')
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|东台市机器人学会 ( 苏ICP备2021035350号-1;苏ICP备2021035350号-2;苏ICP备2021035350号-3 )
GMT+8, 2024-11-23 16:19 , Processed in 0.039721 second(s), 28 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.