Hadoop安装,在格式化时有错误 [Fatal Error] core-site.xml:1:8: Element type "meNode" must be followed by either attribute specifications, ">" or "/>".20/04/16 10: ...
分类:
其他好文 时间:
2020-04-17 00:15:56
阅读次数:
105
一、实例生命周期 除了Vue本身的生命周期处,mpvue还兼容了小程序的生命周期,这部分生命周期的钩子来源于微信小程序的Page,除特殊情况外,不建议使用小程序的生命周期钩子。 app 部分: onLaunch,初始化 onShow,当小程序启动,或从后台进入前台显示 onHide,当小程序从前台进 ...
分类:
微信 时间:
2020-04-16 22:17:32
阅读次数:
113
安装包的时候出现了一个异常 dpkg: error: dpkg frontend is locked by another process 原因是包管理器没有正确关闭。需要重启计算机或者重新打开终端 输入: sudo rm /var/lib/dpkg/lock sudo dpkg --configu ...
分类:
其他好文 时间:
2020-04-16 15:25:35
阅读次数:
414
异常 异常分类 Throwable是祖宗,Error和Exception都是它的子类。 Error是很严重的问题,一旦出现一定要解决,常见的是IOError,StackOverflowError Exception是无法避免的,但是我们可以再可能发生异常的地方捕获异常 异常被捕获了之后程序还能继续运 ...
分类:
其他好文 时间:
2020-04-16 15:02:15
阅读次数:
58
PyMySQL的安装 pip install PyMySQL python连接数据库 import pymysql db = pymysql.connect("数据库ip","用户","密码","数据库" ) # 打开数据库连接 cursor.execute("SELECT VERSION()") ...
分类:
数据库 时间:
2020-04-16 14:51:54
阅读次数:
63
question1: An error occured while deploying the file.This probably means that the app contains ARM native code and your Genymotion device cannot run A ...
分类:
其他好文 时间:
2020-04-16 13:33:25
阅读次数:
253
信息泄露:为什么黑客会知道你的代码逻辑? 为什么错误信息会泄露代码逻辑? 第一,错误信息反馈的是 Syntax error,即语法错误。在密码位置输入单个字母“g”肯定不会引起错误,所以,这个 SQL 语句是因为多了一个单引号导致的报错。而如果使用了 PreparedStatement 等方法,是不 ...
分类:
其他好文 时间:
2020-04-16 12:59:08
阅读次数:
67
1、报错:error:failedtorunKubelet:failedtocreatekubelet:misconfiguration:kubeletcgroupdriver:"cgroupfs"isdifferentfromdockercgroupdriver:"systemd2、原因:kubelet文件驱动默认cgroupfs,而我们安装的docker使用的文件
分类:
其他好文 时间:
2020-04-16 10:34:49
阅读次数:
549
使用threading模块中的Timer函数 from threading import Timer import time def execute_func(name, age, gender, hobby): print(f"name is {name}, age is {age}, gende ...
分类:
其他好文 时间:
2020-04-16 00:58:09
阅读次数:
94
一、定义 assert是一种常用的调试方式,对Boolean表达式进行检查,一个正确的程序必须确保表达式的值为true;如果为false则程序处于不正确的状态,assert会给出警告或者退出。 二、格式 (1)assert [boolean 表达式] 如果[boolean表达式]为true,则程序继 ...
分类:
其他好文 时间:
2020-04-15 21:40:59
阅读次数:
102