- 博客(2)
- 收藏
- 关注
原创 排序之 选择排序与快速排序 python实现
#先看下sort 和 remove 用法 list=[1,9,7,8,5,6,3,2,2,0,4] list.sort() a=list[7] list.remove(a) print(list) [0, 1, 2, 2, 3, 4, 5, 7, 8, 9] #选择排序 list1=[9,7,8,5,6,3,4] arr=[] while list1: res=float("inf") for i in range(len(list1)): if list1[i]<
2020-08-20 12:45:13 179
原创 This Python interpreter is in a conda environment, but the environment has not been activated解决方法
This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. 解决方法 原因: 安装的是Anaconda中带的python版本,python处于conda环境中,使用python需要激活. 1 .输入conda info --envs,查看Anaconda的位置 2 .然后激活,输入conda activate +后面的
2020-06-22 11:06:19 2581
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人