码迷,mamicode.com
首页 >  
搜索关键字:python3 datetime    ( 17497个结果)
python3 端口扫描类
``` # coding=utf-8 from queue import Queue import nmap import threading import requests import chardet import re import json import os # 存储所有扫描的ip和端口服... ...
分类:编程语言   时间:2020-04-01 00:27:55    阅读次数:87
印象最深的问题Your STATICFILES_DIRS setting is not a tuple or list; " ImproperlyConfigured: Your STATICFILES_DIRS setting is not a tuple or list; perhaps you forgot a trailing comma?
```python 这个问题在Python3.6有时候会出现,说明是源码有bug这一块 Your STATICFILES_DIRS setting is not a tuple or list; " ImproperlyConfigured: Your STATICFILES_DIRS settin... ...
分类:其他好文   时间:2020-03-31 23:09:50    阅读次数:107
python3 open txt的UnicodeDecodeError: 'gbk' codec问题解决方案
python3 open txt的UnicodeDecodeError: 'gbk' codec问题解决方案先直截了当给出解决方案,在程序开头加上:import _locale_locale._getdefaultlocale = (lambda *args: ['zh_CN', 'utf8'])1 ...
分类:编程语言   时间:2020-03-31 22:37:47    阅读次数:188
【Python3 爬虫】U11_爬取中国天气网
[toc] 1.网页分析 庚子年初,各种大事件不期而至,又赶上最近气温突变,所以写个爬虫来爬取下中国天气网,并通过图表反映气温最低的前20个城市。 中国天气网:http://www.weather.com.cn/textFC/hb.shtml 打开后如下图: 从图中可以看到所有城市按照地区划分了,并 ...
分类:编程语言   时间:2020-03-31 19:18:24    阅读次数:105
python JSON
Python3 JSON 数据解析 JSON (JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于ECMAScript的一个子集。 Python3 中可以使用 json 模块来对 JSON 数据进行编解码,它包含了两个函数: json.dumps(): 对数据 ...
分类:编程语言   时间:2020-03-31 19:15:15    阅读次数:69
python 命名空间和作用域
Python3 命名空间和作用域 命名空间 先看看官方文档的一段话: A namespace is a mapping from names to objects.Most namespaces are currently implemented as Python dictionaries。 命名 ...
分类:编程语言   时间:2020-03-31 19:10:43    阅读次数:86
Ubuntu 16.04 安装 python3.8
Ubuntu 16.04 amd64 (64bit)(纯净版) 自带python2.7和python3.5 执行"whereis python"查看当前安装的python [root@root ~]# whereis python python: /usr/bin/python2.7 /usr/bi ...
分类:编程语言   时间:2020-03-31 14:35:33    阅读次数:422
python3 retrieve()
代码片段fromurllib.requestimporturlretrieveimportsocketimportosimportsysdefreporthook(blocknum,bs,size):#blocknum:已经下载的数据块bs:数据块的大小size:远程文件的大小per=100.0*blocknum*bs/sizeifper>100:per=100sys.stdout.writ
分类:编程语言   时间:2020-03-31 14:22:47    阅读次数:99
Python|爬取书籍信息
1.前言 爬虫可以有助于快速地从网页中获取想要的信息,从而大大减少工作量今天小编就用实际案例为大家讲解如何爬取网站的一些书籍信息。 2.环境配置 Pycharm,python3,爬虫库request,re模块。 3.爬取目标 爬虫的一般思路:分析目标网页,确定urlà发送请求,获取响应à解析数据à保 ...
分类:编程语言   时间:2020-03-31 14:08:11    阅读次数:85
VScode搭建python开发环境
macos10.15 + vscode1.42 + anaconda python3.7.3 Step 0. 给VScode配置python环境 1)如果本地没有安装过python环境,command+shift+x 打开扩展选项(左边菜单栏的最后一项),搜索python进行安装 2)如果本地已经安 ...
分类:编程语言   时间:2020-03-31 12:40:36    阅读次数:75
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!