上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: # ********************day22_1-课前上节复习+os模块 *******************# ********************day22_1-课前上节复习+os模块 *******************# ********************day22_ 阅读全文
posted @ 2018-08-06 15:30 JY小脚丫 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 现在的目录结构为   现在想要在web2/bin.py中调用web3/main.py模块中的方法 from web3 import main main.foo() 在pycharm中执行 ok 在cmd中执行 ModuleNotFoundError: No module named 'we 阅读全文
posted @ 2018-08-06 11:31 JY小脚丫 阅读(8037) 评论(0) 推荐(1) 编辑
摘要: python中的os.path.dirname(__file__)的使用 - CSDN博客https://blog.csdn.net/u011760056/article/details/46969883 os.path.dirname(__file__)使用、Python os.path.absp 阅读全文
posted @ 2018-08-06 08:52 JY小脚丫 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 2018-08-05 # ********************day21-time与random等常用模块与包 ******************* # 参考资料# python模块(转自Yuan先生)# https://www.cnblogs.com/wupeiqi/articles/493 阅读全文
posted @ 2018-08-05 16:10 JY小脚丫 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 模块&包( )                                        阅读全文
posted @ 2018-08-04 23:26 JY小脚丫 阅读(1018) 评论(0) 推荐(0) 编辑
摘要: pycharm同时使用python2.7和python3.5设置方法 - CSDN博客https://blog.csdn.net/qwerty200696/article/details/53015922 阅读全文
posted @ 2018-08-04 00:06 JY小脚丫 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python# -*- coding:utf-8 -*-# # 一些文章# https://www.cnblogs.com/Vae1242/p/6944338.html# python中“生成器”、“迭代器”、“闭包”、“装饰器”的深入理... 阅读全文
posted @ 2018-08-02 17:38 JY小脚丫 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 求阶乘: 方式一:递归求阶乘 def jiecheng(x): if (x-1 ==0): return x x = x*jiecheng( x-1 ) return x print(jiecheng(9)) 方式而:匿名函数+reduce+range from functools import r 阅读全文
posted @ 2018-08-01 16:56 JY小脚丫 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 关于嵌套:嵌套使用中, retrun inner ---> 返回的是函数的地址 retrun inner() : ---> 运行inner()函数 ---> 运行inner()函数后的返回值a(假设)返回上级 --> retrun inn... 阅读全文
posted @ 2018-08-01 15:20 JY小脚丫 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 老男孩 Python 基础知识练习(三) 1、列举布尔值为 False 的值空,None,0, False, ”, [], {}, ()2、写函数:根据范围获取其中 3 和 7 整除的所有数的和,并返回调用者:符合条件的数字个数以及符合条件的数字的总和如: def f... 阅读全文
posted @ 2018-07-31 09:15 JY小脚丫 阅读(347) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页