摘要:
>> False >> 'No' >>True >> 'Yes' Solutions: 1 def bool_to_word(boolean): return "Yes" if boolean else "No" 2 def bool_to_word(boolean): return ['No', 阅读全文
摘要:
判断 奇数 偶数: Solution: 1 def even_or_odd(number): return 'Even' if number % 2 == 0 else 'Odd' 2 def even_or_odd(number): return ['Even', 'Odd'][number % 阅读全文