第 11 步:使用函数中的信息,让我们使用逻辑来判断我们的动物是否是鱼!
如果and两边的两个语句都是True ,则逻辑运算符and返回True 。
- 从,拖动if and在classify_animal()内缩进。
- 重写 if-and 语句,如下所示: if · has_scales · and · eggs_in_water : ¬
- 从在 if-and 块内添加缩进的String Variable 。
To navigate the page using the TAB key, first press ESC to exit the code editor.