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