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

第三单元第六课

[复制链接]

5

主题

9

帖子

418

积分

中级会员

Rank: 3Rank: 3

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


jump(1 , '火星')
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-2 06:42 , Processed in 0.042428 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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