摘要: 使用相对的的 import 方式,只能在包里面;这样 “.” 就会按照name 找路径; 如果主main运行的话 就找不到路径了。 包含相对路径import 的python脚本不能直接运行,只能作为module被引用。原因正如手册中描述的,所谓相对路径其实就是相对于当前module的路径,但如果直接 阅读全文
posted @ 2017-12-21 23:32 willowj 阅读(6335) 评论(0) 推荐(0)
摘要: GitHub desktop 管理 GitHub的仓库非常方便 ;适合新手 clone: 登录GitHub账户后,file>clone repository> 从账户 或者 url file > new: 新建 file > add : 添加本地 clone: 登录GitHub账户后,file>cl 阅读全文
posted @ 2017-12-21 20:46 willowj 阅读(7289) 评论(0) 推荐(0)
摘要: python enumerate ,range下标迭代list区别 注意大坑 一般除了写法没什么差别;如果迭代可变对象,迭代过程有增删,那要小心了。 for i,v in enumerate(Li_d) , 下标 i会从0 逐渐+1 直到 i=当前的长度 1 ;for item in Li_d 也是 阅读全文
posted @ 2017-12-20 18:35 willowj 阅读(474) 评论(0) 推荐(0)
摘要: Windows 防火墙拦截了///! 控制面板\所有控制面板项\Windows 防火墙\自定义设置 把防火墙关了。 局域网内其他电脑或手机就能访问了 为了计算机安全,最好是通过修改拦截规则 防火墙 高级设置 入站规则 evething TCP规则 右键属性 允许连接 //也可以远程计算机授权 阅读全文
posted @ 2017-12-16 13:09 willowj 阅读(2789) 评论(1) 推荐(0)
摘要: 范围:Numeric > Digit > Decimal A X (Latin) ! Д μ に A X (Latin) ! Д μ に 0 1 9 ६ (Devanagari 6) ೬ (Kannada 6) 𝟨 (Mathematical, styled sans serif) 0 1 9 ६ 阅读全文
posted @ 2017-12-15 23:22 willowj 阅读(1698) 评论(0) 推荐(0)
摘要: 新建注册表 reg 文件输入命令: 双击 写入注册表 嫌名字长,可以,在代码里改了,或者安装后进入注册表再修改数据值 计算机\HKEY_CLASSES_ROOT\Directory\Background\shell\runas ps,默认的shift 右键非管理员打开cmd 也可以删除 extend 阅读全文
posted @ 2017-12-13 12:09 willowj 阅读(4670) 评论(0) 推荐(0)
摘要: python : pip install jnius, sikuli Raise:Exception: Unable to determine JDK_HOME java,need to be in system path jython, also need to be in system path 阅读全文
posted @ 2017-12-12 14:46 willowj 阅读(3361) 评论(0) 推荐(0)
摘要: 因为自带的主题是存储在 c.. \AppData\Local\Sublime Text 3\Cache\Color Scheme - Default 对应 preference -> Solor Scheme ->Color Scheme - Default 主题包 但里面都是.tmTheme.ca 阅读全文
posted @ 2017-09-25 12:26 willowj 阅读(14792) 评论(0) 推荐(1)
摘要: 利用pyecharts (接入百度的echarts,使用js渲染),可制作可拉伸的动态蜡烛图 GitHub 地址:https://github.com/willowj/python_dataEE 如下: : 阅读全文
posted @ 2017-09-17 05:08 willowj 阅读(2760) 评论(0) 推荐(0)
摘要: p = u'' + r'‪C:\Users\Administrator\Desktop\222.txt' python 读取文件报错:IOError: [Errno 22] invalid mode ('rb') or filename: u'\u202aC:\\Users\\Administrat 阅读全文
posted @ 2017-08-23 00:37 willowj 阅读(5109) 评论(0) 推荐(0)