• 2022-06-29
    想要使用while循环重复打印3次OK,下列代码正确的是?
    A: a = 0while a < 3: a += 1 print('OK')
    B: a = 0while a < 10: a += 1 print('OK')
    C: a = 0while a < 3: a += 1print('OK')
    D: a = 0while a < 3: print('OK')