ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
排序算法 === ~~~ mylist = ["curry","harden","lebron","durant","kom"] print(mylist) print(len(mylist)) # 排序 mylist.sort() print(mylist) # 反转 mylist.reverse() print(mylist) # 将序排列 mylist.sort(reverse=False) print(mylist) ~~~