python
奋斗的麻雀
专注图像视频算法研究、实现
展开
-
python-三维数据显示
# -*- coding: utf-8 -*-"""Created on Tue Aug 21 10:07:20 2018@author: zhoubo"""from mpl_toolkits.mplot3d import Axes3Dimport matplotlib.pyplot as pltimport pandas as pdimport numpy as npfro...原创 2018-11-09 10:08:37 · 8009 阅读 · 0 评论 -
python-三维数据显示2
from mpl_toolkits.mplot3d import Axes3Dimport matplotlib.pyplot as pltimport pandas as pdimport numpy as npfrom scipy.optimize import curve_fitfrom sklearn.decomposition import PCAfrom sklearn...原创 2018-11-09 10:11:39 · 1312 阅读 · 0 评论 -
python-numpy-quickSort
def quickSort(arr): if len(arr) < 1: return arr pivot = arr[len(arr)//2] left = [x for x in arr if x < pivot] middle = [x for x in arr if x == pivot] right = [x fo...原创 2019-05-19 16:20:16 · 296 阅读 · 0 评论 -
numpy-dictionary
d ={'peter': 'handsome', 'shutong':'cute'}#key:valueprint('peter' in d)#is in ?print(d['peter'])#下标访问内容d['1']='11'print(d['1'])print(d['shutong'])del d['1']print('1' in d)f = {'person':2, 'd...原创 2019-05-21 22:04:31 · 351 阅读 · 0 评论 -
conda 安装各类包的方法
conda info --envs//列出所有环境activate xxx//切换到xxx环境conda create --name xxx//新建环境conda info -envisconda remove -n flowers --allconda create -n flowers --clone snowflakesconda install -c menpo o...原创 2019-07-25 22:04:52 · 2024 阅读 · 0 评论