arr =[]for i inrange(10):print('请输入第%d个数值:'%(i+1))
x =int(input())
arr.append(x)print(arr)for j inrange(9):for m inrange(j+1,10):if(arr[j]>arr[m]):
arr[j],arr[m]= arr[m],arr[j]print(arr)
例三十三:按逗号分隔列表list_of_stuff = [1,2,3,4,5,'abc']list_str = ','.join([str(i) for i in list_of_stuff])print(list_str)例三十六:求100之内的素数arr_s = []for i in range(2,101): arr = [] for j in range(2,i+1): if(i%j == 0): arr.append(.