模块与单个.py文件的区别,模块中含有__init__.py文件,其中函数调用使用的是相对路径,如果使用导入.py文件的方法在Google Colab中导入模块 会报错:Attempted relative import in non-package 在Google Colab导入中导入一个本地模块 ...
分类:
其他好文 时间:
2018-06-28 13:52:06
阅读次数:
6424
I am writing a python script from which I hope to call the Matlab anovan function. I have attempted a basic test of this feature on file test.txt. Thi ...
分类:
编程语言 时间:
2018-06-28 13:50:48
阅读次数:
509
欢迎关注大数据和人工智能技术文章发布的微信公众号:清研学堂,在这里你可以学到夜白(作者笔名)精心整理的笔记,让我们每天进步一点点,让优秀成为一种习惯! 今天在我的ubuntu系统上使用yum来安装软件时出错了错误:Transaction Check Error:file /usr/libexec/g ...
分类:
其他好文 时间:
2018-04-07 17:33:00
阅读次数:
1238
1. 枚举的定义 首先,定义枚举要导入enum模块。枚举定义用class关键字,继承Enum类。用于定义枚举的class和定义类的class是有区别。 示例代码: 代码分析: 1.1 定义枚举时,成员名称不允许重复 上面的代码,就无法执行。提示错误:TypeError: Attempted to r ...
分类:
编程语言 时间:
2018-01-13 00:15:17
阅读次数:
194
启动mongodb遇到的一个问题和解决: 转(http://blog.csdn.net/u012877472/article/details/51001025) MongoDB: exception in initAndListen: 20 Attempted to create a lock fi ...
分类:
数据库 时间:
2017-12-22 22:52:05
阅读次数:
371
本文为博主原创,未经允许不得转载: 异常展示如下: 异常解析: 由于AVG求平均数时,可能为0导致报错,解决方法: 修改sql,使用IFNULL函数即可解决问题: 即可解决问题。 ...
分类:
移动开发 时间:
2017-12-13 23:17:31
阅读次数:
300
Introduction When an application crashes, a crash report is created and stored on the device. Crash reports describe the conditions under which the ap ...
分类:
移动开发 时间:
2017-12-04 19:08:50
阅读次数:
246
<select id="getMaxHitEventId" parameterType="string" resultType="int"> select max(app_hitEventID) from hits_tab_app where app_hitV=#{app_hitV} </selec ...
分类:
其他好文 时间:
2017-11-28 14:16:40
阅读次数:
289
参考:http://fuwenchao.blog.51cto.com/6008712/1336629问题描述:客户删除了系统上部分用户(说是无关紧要的用户,实际可能是系统用户),无法切换到命令行模式,接着打算进入单用户模式,此时出现Kernelpanic–notsyncing:Attemptedtokillinit
分类:
其他好文 时间:
2017-10-20 15:53:09
阅读次数:
126