Commit 07ca4079 by BellCodeEditor

auto save

parent e54875cd
Showing with 15 additions and 0 deletions
def mao_pao(num_list):
num_len=len(num_list)
for j in range(num_len):
sign=False
for i in range(num_len-1-j):
if a[i]>a[i+1]:
a[i],a[i+1]=a[i+1],a[i]
sign=True
if not sign:
break
if __name__=="__main__":
a=[35,534,54,34,4,46666666666666666666666666666666,689577777777777777777777777,4,5,7,4,7]
mao_pao(a)
print(a)
\ 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