• 2022-07-22
    要判断x是奇数,哪个程序是正确的?()
    A: x=99if x%2!=0 print(x是奇数)
    B: x=99if x%2!=0: print(x是奇数)
    C: x=99if x%2==0: print(x是奇数)
    D: x=99if x=2的倍数: print(x不是奇数)