python 3的倍数
- num=float(input())
- if num%3==0:
- print("yes")
- else:
- print("no")
复制代码 第十个老是错误 求助{:soso__3669389859068460655_4:}
python 3的倍数(2)
- numlist = list(input())
- num=0
- for n in numlist:
- num = num+int(n)
- if num%3==0:
- print("yes")
- else:
- print("no")
复制代码 直接全军覆没 也不知道什么情况{:soso__3669389859068460655_4:}
|