Commit b5385c30 by BellCodeEditor

save project

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