python: 选择排序
来源:互联网 发布:windows错误报告 进程 编辑:程序博客网 时间:2024/06/06 09:18
python: 选择排序
标签:python 选择排序
by 小威威
下面是我用python写的选择排序。
#!/usr/bin/python3# Filename: selectionsort.pylist = input().split()list = [int(i) for i in list]index = 0for i in range(len(list)-1, 0, -1): for j in range(0, i+1): if list[index] < list[j]: index = j temp = list[index] list[index] = list[i] list[i] = temp index = 0print (list)
0 0
- python选择排序
- Python 直接选择排序
- Python 实现选择排序
- 选择排序 python
- Python 选择排序
- python 实现选择排序
- Python 选择排序
- python: 选择排序
- 选择排序python版
- python选择排序
- Python选择排序
- 选择排序python实现
- Python选择排序算法
- python--选择排序
- Python实现选择排序
- python描述选择排序
- Python排序算法-选择排序
- [排序] 简单选择排序(Python)
- 实用的sublime插件集合 – sublime推荐必备插件
- Android之Activity的4种加载模式
- linux daemon简介
- leetcode--69.sqrt(x)
- IOS- uitextviewdemo
- python: 选择排序
- 本机socket通信(Java
- [Unity实战]攻击范围的绘制
- hdu2242考研路茫茫——空调教室(边双连通,缩点,dfs)
- uiviewcontroller 转场放大缩小动画
- 如何让你的魅蓝手机无网络下GPS神速搜星定位!
- 用java连数据库怎么都连不上,才发现SQL server开启TCP/IP登录,并且启用默认的1433端口
- HTML5之embed 播放音频
- 微信6.0界面学习笔记