C0LOR1 = "PapayaWhip" COLOR2 = "Tan" selectColor = lambda num: C0LOR1 if num % 2 == 0 else COLOR2
解析:当num的值是偶数时显示COLOR1,否则显示COLOR2
2024-04-04 11:01:14
C0LOR1 = "PapayaWhip" COLOR2 = "Tan" selectColor = lambda num: C0LOR1 if num % 2 == 0 else COLOR2
解析:当num的值是偶数时显示COLOR1,否则显示COLOR2