![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
浮沉_y
这个作者很懒,什么都没留下…
展开
-
Python爬codefores所有的题目信息
直接贴代码from urllib.request import urlopenfrom bs4 import BeautifulSoupfrom urllib import requestimport pymysql.cursorsimport renum = 0for i in range(10): print("当前正处于", (i + 1), "页") ...原创 2018-08-03 20:20:55 · 288 阅读 · 0 评论 -
Python使用Selenium填写问卷调查表单
1、使用Selenium webdriver打开浏览器,填写表单,需要下载浏览器驱动driver (1)chromedriver 下载地址:http://npm.taobao.org/mirrors/chromedriver/ (2)Firefox的驱动geckodriver 下载地址:https://github.com/mozilla/geckodriver/release...原创 2018-11-03 16:11:51 · 1795 阅读 · 0 评论 -
Python qqbot 实现qq机器人
qqbot项目Gayhub地址:https://github.com/pandolia/qqbot # -*- coding: utf-8 -*-import qqbotfrom qqbot import QQBotSlot as qqbotslot, RunBotfrom qqbot import _bot as botimport timeimport jsonimpor...原创 2018-11-03 19:06:43 · 5227 阅读 · 2 评论 -
Python scapy抓取网卡中的数据包
# encoding: utf-8from scapy.all import *import threadingimport sysdef dealwith(): print '开始抓包' # 下面的iface是电脑网卡的名称 count是捕获报文的数目 dpkt = sniff(iface="Qualcomm Atheros AR956x Wireless ...原创 2018-12-27 11:46:48 · 9859 阅读 · 1 评论 -
Tensorflow识别MNIST数据集
神经八股的模块化实现forward模块import tensorflow as tfINPUT_NODE = 784OUTPUT_NODE = 10LAYER1_NODE = 500def get_weight(shape, regularizer): w = tf.Variable(tf.truncated_normal(shape, stddev=0.1)) ...原创 2019-02-27 21:38:42 · 205 阅读 · 0 评论 -
Python之Tensorflow学习笔记
在此记录我的tensorflow的学习0、简单的tensorflow操作这里我们定义两个变量w1、w2(中间层变量)w1是一个2行3列的矩阵、w2是一个3行1列的矩阵x是占位符,为输入的数据占位,x是未知个,2列的数据使用feed_dict模式输入数据,喂入神经网络中#coding:utf-8import tensorflow as tfx = tf.placeh...原创 2019-02-26 21:55:17 · 335 阅读 · 0 评论