Commit b5385c30 by BellCodeEditor

save project

parent d60b66a2
Showing with 9 additions and 6 deletions
message = "诺依,周末一起去看动漫展吧!"
# 请对message进行遍历,取出所有元素
for i in message:
print(i)
\ No newline at end of file
a=list(map(int,input().split(",")))
a.sort()
a.pop(0)
a.pop(-1)
sum=0
for i in range(len(a)):#遍历求和
sum=sum+a[i]
print(round(sum/6,2))#round(要进行保留几位小数的数,保留几位)
\ 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