PYTHON(控件和条件流)

2024-04-19 22:31:49 发布

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

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if ______:    # Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif _____
        # Keep going here.
        # You'll want to add the else statement, too!

请帮忙


Tags: thetotruemakeifthatheredef
1条回答
网友
1楼 · 发布于 2024-04-19 22:31:49

这是codecademy的教程。说明如下:

在\u flying \u circus()中编写if语句。它必须包括:

  1. if、elif和else语句
  2. 和、或、或不是中的至少一个
  3. 比较器(=!=、<;、<;=、>;或>;=)
  4. 最后,求值时,\u flying \u circus()必须返回True。 别忘了在你的if语句后面加上:哦!你知道吗

因此,您必须用34>;33这样的比较填充下划线部分。并使用比较器,这是要求。函数应该总是返回True,所以在if或elif语句中编写一个类似1>;0的比较,它总是True。但也许你被困在别的地方或者忘了带结肠。 希望我能帮助你。否则就解释一下你被困的地方。你知道吗

相关问题 更多 >