for a in range(n-1): for b in range(n-1-i): if(p[b]<p[b+1]): tmp=p[b] p[b]=p[b+1] p[b+1]=tmp
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。