def bakers_party(no_pastr,weekend):
""" <Return whether the baker's party will be successful.>
@type no_pastr : int, weekend : bool
@rtype bool
"""
if not weekend and no_pastr >= 40 and <= 60:
return True
elif weekend and no_pastr >= 40:
return True
else:
return False
好了。希望你取得好成绩
相关问题 更多 >
编程相关推荐