...占位 説明 Redhat系 Debian系 更新缓存 yum makecache apt-get update 更新包 yum update apt-get upgrade 检索包 yum search apt-cache search 检索包内文件 yum provides apt-file ...
分类:
其他好文 时间:
2020-05-22 10:05:56
阅读次数:
66
#_save_url 保存路径 def image_cj(driver, _save_url): try: _file_name = random.randint(0, 100000) _file_url_drop = _save_url + str(_file_name) + '背景.png' # ...
分类:
编程语言 时间:
2020-05-22 09:56:31
阅读次数:
59
问题现象: 运行py文件时,弹出框提示:Configuration is still incorrect.Do you want to edit it again? 问题原因: 没有配置python解释器 解决方法: 1.File → Settings 2.Project Interpreter 3 ...
分类:
其他好文 时间:
2020-05-22 09:22:41
阅读次数:
503
创建工程与创建相应的app django-admin startproject MxOnline python3 manage.py startapp users python3 manage.py startapp course python3 manage.py startapp organiz ...
分类:
其他好文 时间:
2020-05-22 00:12:04
阅读次数:
47
导图整理 文件属性与权限 文件操作 chown # chown [-R] username file/dir # chown [-R] username:groupname file/dir -R:递归的改变目录下的文件和子目录 注意:username:groupname中的冒号也可以使用小数点.代 ...
分类:
其他好文 时间:
2020-05-21 22:30:43
阅读次数:
72
背景 早在2013年1月,ORC(Optimized Row Columnar)出现,作为大规模加速Apache Hive和提高存储在Apache Hadoop中的数据的存储效率的计划的一部分。重点是为了提升处理速度和减小文件占用磁盘大小。 目前有很多公司已经大规模使用ORC了,比如Facebook ...
分类:
其他好文 时间:
2020-05-21 16:21:16
阅读次数:
76
#define CHECK_JSON_OBJECT(obj) \ { \ if(obj == NULL) { \ printf("%s:%s:%s get %s failed!\n",__FILE__,__func__,__LINE__,#obj); \ return; \ } \ printf(" ...
分类:
其他好文 时间:
2020-05-21 14:46:29
阅读次数:
36
使用optparse 在引用脚本传参数的时候 可以根据需要动态传入参数 不声明参数默认取default的值 没有default取值为Nonex.py from optparse import OptionParser parser = OptionParser() parser.add_option ...
分类:
编程语言 时间:
2020-05-21 14:40:29
阅读次数:
72
linux登录超时设置 # 设置用户登录180s没有操作交互就注销当前登录用户 vim /etc/profile export TMOUT=180 180秒登录超时 禁止root用户通过远程ssh登录(可在服务器宿主机上登录) vim /etc/ssh/sshd_config PermitRootL ...
分类:
其他好文 时间:
2020-05-21 13:25:40
阅读次数:
147
1、下载Resource Hacker 2、用Resource Hacker打开WINRAR.exe安装目录(比如:C:\Program Files\WinRAR\WinRAR.exe)。 3、选择左边树,找到“String Table”,找到80 2052 4、删除1277行内容 5、另存为WIN ...