找回密码
 中文实名注册
查看: 41|回复: 0

作业

[复制链接]

2

主题

5

帖子

47

积分

新手上路

Rank: 1

积分
47
发表于 2024-4-13 11:13:07 | 显示全部楼层 |阅读模式
def jump(height,planet)
    if planet == '月'
        result = height * 6
    if planet == '火'
        result = height * 2.5
    if planet == '木'
        result = height * 0.4
    sentence = '你可以在' + plance + '跳' + str(result) + '米'
    print(sentence)


jump(1,'火')
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 中文实名注册

本版积分规则

小黑屋|东台市机器人学会 ( 苏ICP备2021035350号-1;苏ICP备2021035350号-2;苏ICP备2021035350号-3 )

GMT+8, 2024-4-30 04:28 , Processed in 0.042079 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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