![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
seabird_bai
医学生,想要成为技术人的小白一名
展开
-
python_jupyter_notebook_安装目录插件
系统:win10步骤:1. 任务栏搜索“Anaconda Promt”,并右键用管理员权限打开自己需要的那个版本2. 输入pip install jupyter_contrib_nbextensions国内下载速度很慢,可以先换镜像:临时:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package永久:pip config set global.index-url https://pypi.tuna.tsinghu原创 2020-06-25 20:53:18 · 1927 阅读 · 0 评论 -
python_众数
# 定义计算众数的函数grade_mode(),参数为待分析列表型数据grade_list,返回众数def grade_mode(grade_list): # 获取各个元素重复次数(只计算当前元素之后的次数) grade_list_repeattimes=[] for index,i in enumerate(grade_list): counts=0 ...原创 2020-04-07 12:54:56 · 1224 阅读 · 0 评论 -
python_中位数
# 定义计算中位数的函数get_median(),输入参数为input_list,return值为中位数def get_median(input_list): input_list.sort() #input_list从小到大排序 #print(input_list) n=len(input_list) #获取input_list长度并赋值给n if n%2 ==...原创 2020-04-07 13:21:19 · 5698 阅读 · 0 评论 -
python_均值
# 定义计算均值的函数get_mean(),输入参数为input_list,return值为均值def get_mean(input_list): #求和 sum=0 for i in input_list: sum+=i #求算数均数 mean_value=sum/len(input_list) return mean_val...原创 2020-04-07 13:43:56 · 1650 阅读 · 0 评论