https://www.cnblogs.com/yuanchenqi/articles/5732581.html https://www.cnblogs.com/linhaifeng/articles/6384466.html#_label2 一 time与datetime模块 在Python中,通 ...
分类:
编程语言 时间:
2020-04-06 14:03:15
阅读次数:
87
不使用递归import os from os.path import join, getsize def getdirsize(dir): size = 0 for root, dirs, files in os.walk(dir): size += sum([getsize(join(root, ...
分类:
其他好文 时间:
2020-04-06 13:48:49
阅读次数:
64
python操作cmd 我们通常可以使用os模块的命令进行执行cmd 方法一:os.system os.system(执行的命令) # 源码 def system(*args, **kwargs): # real signature unknown """ Execute the command i ...
分类:
编程语言 时间:
2020-04-06 13:37:49
阅读次数:
88
一、编辑setting.py文件 DEBUG = False ALLOWED_HOSTS = ['*',] TEMPLATES = [ { ... 'DIRS': [os.path.join(BASE_DIR, 'templates')] ... }, ] 二、在templates文件夹下新建404 ...
分类:
其他好文 时间:
2020-04-06 13:29:41
阅读次数:
103
1、参考博客:https://blog.csdn.net/wang328452854/article/details/78486458 2、uCOS(也有人叫uC/OS)由美国人 Jean Labrosse在1992年编写的一个实时操作系统 3、uCOS特点: ①、可剪裁:有一个专门用来裁剪系统的配 ...
分类:
其他好文 时间:
2020-04-06 11:32:11
阅读次数:
77
```python from bs4 import BeautifulSoup from urllib import request import threading import re import os from lxml import html class SpiderCategory(thr... ...
分类:
编程语言 时间:
2020-04-06 00:13:04
阅读次数:
69
os:Ubuntu18.10 1.使用apt-get安装MySQL,默认安装5.7 sudo apt-get install mysql-server 2.使用默认账号登录MySQL sudo vi /etc/mysql/debian.cnf # Automatically generated fo ...
分类:
数据库 时间:
2020-04-05 20:12:02
阅读次数:
111
环境: ip hostname software version OS port 192.168.1.120 nginx-proxy-master.gz01 nginx-1.8.1 CentOS Linux release 7.4.1708 (Core) 80 192.168.1.136 tomca ...
分类:
系统相关 时间:
2020-04-05 20:06:43
阅读次数:
90
[原因]:os图形界面配置文件损坏 [修复步骤] 进入 recovery mode 第一步 : 打开手机热点,设置成不需要密码就能链接,加密方式为 无 第二步 : 产看网卡名称 ifconfig ,并启用网卡 执行:ifconfig wlp2s0 up 第三步 : nmcli device wifi ...
分类:
系统相关 时间:
2020-04-05 09:22:14
阅读次数:
321
setting 1 ''' 2 存放配置信息 3 ''' 4 import os 5 6 # 获取项目根目录路径 7 BASE_PATH = os.path.dirname( 8 os.path.dirname(__file__) 9 ) 10 11 # 获取user_data文件夹目录路径 12 ...
分类:
其他好文 时间:
2020-04-05 00:25:39
阅读次数:
59