
Python
Carlous_Chen
传递价值从我做起!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python描述符示例
def func(self): print('我胡汉三又回来了')print(dir(func))print(hasattr(func, '__set__')) # Falseprint(hasattr(func, '__get__')) # Trueprint(hasattr(func, '__delete__')) # Falseclass Foo: ...原创 2020-07-08 09:32:24 · 136 阅读 · 0 评论 -
关于 win10 系统中 Anaconda3 中修改 Jupyter Notebook 默认启动目录
目标:修改Anconda3中自带的Jupyter Notebook默认启动目标.步骤: 1.提前创建好你想要启动位置文件夹. 2.寻找配置文件,"jupyter_notebook_config.py" 可以使用Everything软件之家搜索该文件名,或一般在"C:\Users\你的用户名\.jupyter" 中找到. 3.打开"jupyter_notebook_...原创 2018-06-07 21:12:42 · 1580 阅读 · 0 评论 -
python中关于变量名失效的案例
案例一:传参动态导入模块.selectModule = input("please input your module name")app_name = input("please input your App's name")# import selectModule #此时导入的模块名是selectModulemodule = __import__(selectModule) ...原创 2018-12-09 22:09:27 · 553 阅读 · 0 评论 -
python数据类型小测试
# 1. 有两个列表,其中一个列表a,每一项映射到另一个列表b每一项,先对a排序,要求b的中映射关系位置保持不变,给b也按照排序, (b的8对应a的[1,2], 7对应[3,4] ... )a = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 0]]b = [8, 7, 9, 7, 9]def relation(a,b): relation = {}...原创 2019-01-15 15:36:29 · 286 阅读 · 0 评论