Commit 16db9fa3 by BellCodeEditor

auto save

parent 9c4fa246
Showing with 29 additions and 0 deletions
a=list(map(int,input().split("")))
i=0
n=0
b=len(a)
for i in a:
if a[i]<60:
n=n+1
print(n/b)
\ No newline at end of file
import a
\ No newline at end of file
def data():
total=[]
while True:
a=input()
try:
a=int(a)
except:
if a=='q':
break
else:
print("输入整数")
else:
total.append(a)
print(total)
data()
\ No newline at end of file
a=6
\ 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