python
真是个大美丽
算法工程师
展开
-
如何在jupyter notebook中切换自己在Anaconda中创建的环境
参考链接原创 2021-06-11 10:34:28 · 114 阅读 · 1 评论 -
python3 input()实现一句输入多个值
原理:split()如:a,b =input(‘输入a,b空格隔开:’).split()#此时a,b为str型a,b =map(int,input(‘输入a,b空格隔开:’).split())#此时a,b为int型1234input()获取的是整行的字符串,用split()以分隔符空格切片以下摘自菜鸟教程关于map()map() 函数语法:map(function, i...转载 2019-03-16 17:59:38 · 3962 阅读 · 4 评论 -
为什么原始字符串不能以单个反斜杠结尾?
文章目录0. 参考资料现象解释解决方式 1方式 2方式 3参考资料Why can’t Python’s raw string literals end with a single backslash?现象Python 的原始字符串有很多应用场景,比如用来表示 Windows 的路径和应用于正则表达式中。但是在使用的时候却发现,原始字符串无法以单个反斜杠结...转载 2019-03-12 16:20:33 · 291 阅读 · 0 评论 -
Python 给多个变量同时赋值
#给多个变量赋值data=[‘alex’,84,[1900,3,38]]name,age,birth=dataprint(name)print(age)print(birth)msg=‘hello’a,b,c,d,e=msgprint(a,b,c,d,e)msg=‘hello’a,,,,b=msgprint(a)print(b)#只给第一个和最后一个变量赋值a,*,b...转载 2019-03-17 21:49:40 · 4113 阅读 · 0 评论 -
Python 一句话生成字母表的方法
转载 2019-03-18 11:12:55 · 541 阅读 · 0 评论 -
Python列表推导式用法
转载 2019-03-18 15:15:16 · 108 阅读 · 0 评论 -
Python之列表推导式
转载 2019-03-18 15:29:44 · 103 阅读 · 0 评论 -
Python进阶之递归函数的用法及其示例
转载 2019-03-18 16:30:29 · 164 阅读 · 0 评论 -
所有递归都可以改写成循环吗?
https://www.zhihu.com/question/20418254转载 2019-03-18 16:52:02 · 2657 阅读 · 0 评论 -
Python开发之-Python递归图示理解
转载 2019-03-18 21:36:49 · 284 阅读 · 0 评论 -
Python实现:汉诺塔问题
转载 2019-03-18 21:53:46 · 110 阅读 · 0 评论 -
Python中第三方库的安装
原创 2019-03-19 09:46:54 · 154 阅读 · 0 评论 -
python将字符串转换成整型
转载 2019-03-29 20:29:39 · 6180 阅读 · 0 评论 -
关于python 导入包 .pth文件
转载 2019-03-30 09:56:47 · 474 阅读 · 0 评论 -
Python中的isdigit() isdigit() isdigit()的区别
转载 2019-04-01 14:39:26 · 2168 阅读 · 0 评论 -
python中string.casefold和string.lower区别
转载 2019-04-01 15:04:29 · 367 阅读 · 0 评论 -
Pandas 进阶:由模仿到理解
pdf下载:链接:https://pan.baidu.com/s/1uVycIcyyv_UeQw6CckGpeA提取码:n6g4转载 2019-04-16 16:09:05 · 124 阅读 · 0 评论 -
numpy.where() 用法详解
转载 2019-04-16 19:03:20 · 118 阅读 · 0 评论 -
numpy中函数resize与reshape,ravel与flatten的区别
.flatten()返回一份拷贝.ravel()返回视图转载 2019-04-16 20:19:15 · 346 阅读 · 0 评论 -
numpy拾遗
原创 2019-04-16 20:48:43 · 121 阅读 · 0 评论 -
python之numpy.power()数组元素求n次方
转载 2019-04-18 10:31:13 · 240 阅读 · 0 评论