test_list=[{'data':1,'no':301},{'data':2,'no':401},{'data':4,'no':201},{'data':6,'no':101},{'data':5,'no':303}]new_list=list(test_list)#print(new_list)formatchintest_list:ifmatch['no']>300:match['n
计算机浮点数陷阱
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号