上一页 1 ··· 94 95 96 97 98 99 100 101 102 ··· 123 下一页
摘要: import requests from lxml import html import time import pandas as pd from sqlalchemy import create_engine import traceback from fake_useragent import UserAgent as UA #使用其random方法获取随机ua class ZhaoPi... 阅读全文
posted @ 2018-03-05 22:59 公众号python学习开发 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 如何获取数据点击这里 数据样式大概这样。然后下面我分析的是工作要求 也就是那边的绿框那一列。 运行完上面的程序得到的文件结构如下 阅读全文
posted @ 2018-03-05 22:56 公众号python学习开发 阅读(433) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- # @Time : 2018/03/05 10:57 # @Author : cxa # @File : testDataTime.py # @Software: PyCharm import datetime import time # 今天 12:36 # 34分钟前 # 20秒前 # 2月26日 09:38 #统一格式化成时间类... 阅读全文
posted @ 2018-03-05 14:32 公众号python学习开发 阅读(385) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import os import time import logging import sys log_dir1=os.path.join(os.path.dirname(os.path.dirname(__file__)),"logs") today = time.strftime('%Y%m%d', time.localtime(time.ti... 阅读全文
posted @ 2018-03-05 12:29 公众号python学习开发 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 创建链接基础类。 2.设计需要的表的字段 3.映射到实体 4.创建表 阅读全文
posted @ 2018-03-05 10:59 公众号python学习开发 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 最近用mysqlalchmy的时候遇到了 sqlalchemy.exc.InternalError: (pymysql.err.InternalError) (1366, "Incorrect string value: '\\xF0\\xA0\\x88\\x8C\\xEF\\xBC...' for 阅读全文
posted @ 2018-03-05 10:36 公众号python学习开发 阅读(2306) 评论(0) 推荐(0) 编辑
摘要: using System; //添加selenium的引用 using OpenQA.Selenium.PhantomJS; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Support.UI; using OpenQA.Selenium; //添加引用-在程序集中添加System.Drawing using System.IO; us... 阅读全文
posted @ 2018-03-02 17:08 公众号python学习开发 阅读(7878) 评论(0) 推荐(1) 编辑
摘要: 以前迭代的时候,需要获取次数都是如下格式: 通过for循环外层定义一个变量来进行循环,然后内部进行++操作。 然后今天才发现还有一个迭代同时获取元素下标的属性 如下 阅读全文
posted @ 2018-02-28 14:16 公众号python学习开发 阅读(1161) 评论(0) 推荐(0) 编辑
摘要: 因为windows和linux的系统路径链接符不一样的所有用 os.path.join('usr', 'bin', 'spam') 拼接路径,括号中的参数个数不限。 'usr\\bin\\spam' os.getcwd() 可以获取当前的工作目录。 os.chdir() 可以修改工作目录到指定目录, 阅读全文
posted @ 2018-02-27 18:43 公众号python学习开发 阅读(167) 评论(0) 推荐(0) 编辑
摘要: >>> import pyperclip>>> pyperclip.copy('Hello world!')>>> pyperclip.paste()'Hello world!' 阅读全文
posted @ 2018-02-27 18:23 公众号python学习开发 阅读(325) 评论(0) 推荐(0) 编辑
上一页 1 ··· 94 95 96 97 98 99 100 101 102 ··· 123 下一页