python的新特性。以下是我在看將用戶輸入的值存儲到變量中(在一個函數中)
def input(check):
Check if the input by the user is bigger 0 and assign the user input result (Boolean) to a variable
Check if the input by the user is smaller than 180 and assign the user input result (Boolean) to another variable
如果兩個變量包含true
,然後返回true
或其他情況下,返回False
如何編寫代碼呢?
感謝您分享您正在查看的內容。你有問題嗎? – HavelTheGreat 2015-02-23 21:23:17
我很抱歉。問題是如何去做... – 2015-02-23 21:24:00
好吧。你可以請添加你的嘗試到目前爲止?這會讓這裏的人更願意幫忙。通常很高興看到一些你已經試過的代碼,即使它不能滿足你的需求。 – HavelTheGreat 2015-02-23 21:24:24