用if块理解Python的条件和控制流

2024-05-29 11:36:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我是一个学生,只是喜欢代码,所以我开始代码学院。我已经完成Javascript,现在开始python。但我的代码不起作用。你知道吗

     #Make sure the function the_flying_circus returns True       
     def the_flying_circus(s):
if s == "yes":
    return "blah"    
elif s == "no" or "nai":
    return "blegh"
else:
    return "i do not understand"

请帮帮我


Tags: the代码truemakereturnifdeffunction

热门问题