n=int(input()) count=0 while n>0: count += 1 n-=1 if count!=0 and count%3==0: n+=1 print(count) 与下面代码的区别 n=int(input()) count=0 while n>0: n-=1 if count!=0 and count%3==0: n+=1 count += 1 print(count)
时间: 2023-05-28 13:05:00 浏览: 139
PAT计算机能力考试乙级1-10题答案.doc
Null is a term used in computer programming and databases to represent a value that does not exist or is undefined. It is often used to indicate the absence of a value or to indicate an error. In programming languages, null is often used as a placeholder value or to indicate that a variable has not been assigned a value. In databases, null is used to represent missing or unknown data.
阅读全文