Commit b93e88a9 by BellCodeEditor

save project

parent 7c39e628
Showing with 17 additions and 8 deletions
# s是一个0至100的随机数
if s%2==0: # 如果s对2取余等于0,那么s就是一个偶数 num = input("输入一个整数")
print(s, 1) num1 = int(num)
print("这是一个偶数", 2) if num1%2==0:
else: #否则,s就是一个奇数 shu = "偶数"
print(s, 1) else:
print("这是一个奇数", 2) shu = "奇数"
\ No newline at end of file print("你输入的数字是")
i=1
while i <=9:
for j in range(1,i+1{i*j})
print(f"(i)*(j)={i*j}",end="")
i+=1
print()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment