1、 导入hellodb.sql生成数据库 # 导入hellodb_innodb.sql数据库文件,生成hellodb数据库 [root@centos7 ~]#mysql -uroot -p123456 < hellodb_innodb.sql (1) 在students表中,查询年龄大于25岁,且 ...
分类:
其他好文 时间:
2020-07-26 23:23:35
阅读次数:
110
环境oracle 11.2.0.4, linux redhat 6.9 RAC2个实例 1.问题现象 sqlplus登录用户hang住 oracle@wocdb6 ~]$ sqlplus wa/Sx SQL*Plus: Release 11.2.0.4.0 Production on Thu Jul ...
分类:
数据库 时间:
2020-07-26 23:22:22
阅读次数:
114
使用python的时候经常会遇到文本的编码与解码问题,其中很常见的一种解码错误如题目所示, 1、编码设置 第一行没有设置 # _*_ coding:utf-8 _*_ 2、后面处理数据时没有转码下,如open函数上 处理如下:with open("data.txt",'r',encoding='UT ...
分类:
其他好文 时间:
2020-07-26 22:53:19
阅读次数:
74
接下来,我们补充一下Activity的横竖屏生命周期的变化。 先上代码吧: package com.sunofbeaches.activitylifecircledemo; import android.app.Activity; import android.os.Bundle; import a ...
分类:
其他好文 时间:
2020-07-26 19:25:44
阅读次数:
79
在获取yaml文件数据时,提示:UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 2: illegal multibyte sequence import yaml def test_yaml(): with ope ...
分类:
编程语言 时间:
2020-07-26 16:00:12
阅读次数:
88
lizhang4 ruanyifeng tmux打开 Ctrl + b + %左右分割,Ctrl + b + "上下分割 Ctrl + b + 方向键跳转窗口。 Ctrl + b + &关闭。 暂时这几个够本渣渣用了,平时也就窗口不好拖或者需要vim遍写代码边man一些东西的时候用一下。 ...
分类:
其他好文 时间:
2020-07-26 01:22:02
阅读次数:
55
def change(str): s="" result="" for n in range(len(str)): if(n+1)%2!=0: s=s+"\\x"+str[n]; # if len(str) == (n+1): # print(s) else: s = s + str[n]; # p ...
分类:
编程语言 时间:
2020-07-26 01:13:54
阅读次数:
89
Passage 26 Many researchers use the term Artificial Intelligence (AI) to describe the thinking and intelligent behavior demonstrated by machines. Whil ...
分类:
其他好文 时间:
2020-07-26 01:02:29
阅读次数:
75
跟随视频学习了一些常见的排序,把自己第二天能理解的记录下来,万一以后忘记了呢? def linear_search(li, target): """ 线性查找 """ for ind, tar in enumerate(li): if tar == target: return ind else: ...
分类:
编程语言 时间:
2020-07-26 00:48:40
阅读次数:
57
1.关于from module import *的说明 在Python的教材和示例代码中,经常会看到 from xxx import * 的用法,但在实际产品的代码中,应该要避开这样的用法。Python模块中包含任何数量的类、函数、或者变量,但使用from xxx import * 用法调用模块时, ...
分类:
编程语言 时间:
2020-07-26 00:39:30
阅读次数:
76