• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






守护式等待

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

08 2019 档案

 
django DeleteView
只有注册用户登录后才能阅读该文。
posted @ 2019-08-28 15:31 守护式等待 阅读(110) 评论(0) 推荐(0)
django ListView
摘要:ListView from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import ListView from apps.news.models import News class N 阅读全文
posted @ 2019-08-28 13:59 守护式等待 阅读(97) 评论(0) 推荐(0)
pycharm 设置django server
摘要: 阅读全文
posted @ 2019-08-22 15:51 守护式等待 阅读(195) 评论(0) 推荐(0)
centos7虚拟机端口命令
摘要:cat /etc/redhat-release # 查看centos 版本 Centos7端口常见命令 虚拟机新开了5005端口,系统内部是显示开了的,但是外部不能访问端口。 一些需要用到的命令: 1、firewalld的基本使用 systemctl enable firewalld.service 阅读全文
posted @ 2019-08-22 15:40 守护式等待 阅读(228) 评论(0) 推荐(0)
解决Django-Error: That port is already in use
摘要:Error: That port is already in use. 1.使用python manage.py runserver 8001 开一个新的端口。 2.kill掉原来的端口(在root条件下)。 2.1在终端输入lsof -i:8000,列出进程信息。 yum install lsof 阅读全文
posted @ 2019-08-22 10:50 守护式等待 阅读(97) 评论(0) 推荐(0)
mysql报错
摘要:centos 安装mysqlclient报错 pipenv.patched.notpip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /t 阅读全文
posted @ 2019-08-21 14:42 守护式等待 阅读(113) 评论(0) 推荐(0)
pipenv
摘要:1.安装pipenv pip3.6 install pipenv 2.创建虚拟环境 pipenv --python 3.6 # 指定python3.6版本 3.安装包 cd myorject # 进入项目目录 pipenv install django 4.安装完成后会在项目目录生成两个文件 vi 阅读全文
posted @ 2019-08-20 14:24 守护式等待 阅读(81) 评论(0) 推荐(0)
merge
摘要:1.merge def merge(left, right, how="inner", on=None, left_on=None, right_on=None, left_index=False, right_index=False, sort=False, suffixes=("_x", "_y 阅读全文
posted @ 2019-08-16 14:21 守护式等待 阅读(362) 评论(0) 推荐(0)
pandas 基本操作
摘要:1. import pandas as pd import numpy as np df1 = pd.DataFrame(np.arange(12).reshape(3, 4)) df2 = pd.DataFrame(np.arange(20).reshape(4, 5)) print(df1) p 阅读全文
posted @ 2019-08-15 10:26 守护式等待 阅读(112) 评论(0) 推荐(0)
to_sql, to_csv, to_excel, to_json
摘要:from pandas import DataFrame 1.to_sql def to_sql(self, name, con, schema=None, if_exists="fail", index=True, index_label=None, chunksize=None, dtype=N 阅读全文
posted @ 2019-08-14 10:12 守护式等待 阅读(215) 评论(0) 推荐(0)
read_sql_query, def read_sql_table
摘要:read_sql_query, read_sql_table def read_sql_query(sql, con, index_col=None, coerce_float=True, params=None, parse_dates=None, chunksize=None): sql: my 阅读全文
posted @ 2019-08-12 15:16 守护式等待 阅读(126) 评论(0) 推荐(0)
cookiecutter
摘要:1.安装cookiecutter pip3 install cookiecutter 2.设置模板 https://github.com/cookiecutter/cookiecutter 搜索需要的模板 cookiecutter https://github.com/pydanny/cookiec 阅读全文
posted @ 2019-08-06 16:49 守护式等待 阅读(225) 评论(0) 推荐(0)
pycharm 远程连接
摘要:1.连接远程项目 注意:Visible only for this project 这个选项如果勾选,这个配置只使用这个项目,在其他项目是找不到的,后面ssh 远程配置python3.6环境也会找不到这个配置,个人推荐不要勾选,如果服务器有多套环境可以使用 2.连接远程服务器 阅读全文
posted @ 2019-08-06 15:03 守护式等待 阅读(110) 评论(0) 推荐(0)
aiohttp_spider
摘要:aiohttp_spider_def: import asyncio import re import aiohttp import aiomysql from pyquery import PyQuery from lxml import etree start_url = 'http://new 阅读全文
posted @ 2019-08-05 16:09 守护式等待 阅读(65) 评论(0) 推荐(0)
mysql autocommit
摘要:当autocommit为开启状态时,即使没有手动start transaction开启事务,mysql默认也会将用户的操作当做事务即时提交(自动帮我们 db.commit()) autocommit开启时,mysql的插入效率会提高 1.autocmmit=False import pymysql 阅读全文
posted @ 2019-08-05 14:58 守护式等待 阅读(155) 评论(0) 推荐(0)
ADB端口5037被占用 导致adb 停止工作
摘要:解决ADB端口占用问题 方式一 5037为adb默认端口,若5037端口被占用,打开cmd,输入以下指令, 1.查看占用端口的进程PID netstat -aon|findstr 5037 2. 通过PID查看所有进程 tasklist /fi "PID eq 3704" 3. 杀死占用端口的进程 阅读全文
posted @ 2019-08-05 14:45 守护式等待 阅读(582) 评论(0) 推荐(0)
aiomysql
只有注册用户登录后才能阅读该文。
posted @ 2019-08-02 16:08 守护式等待 阅读(113) 评论(0) 推荐(0)
headers
摘要:headers: # Windows 10 IE 11.0 headers = {"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"} # Chrome 59.9 headers 阅读全文
posted @ 2019-08-01 16:56 守护式等待 阅读(340) 评论(0) 推荐(0)
aiohttp
只有注册用户登录后才能阅读该文。
posted @ 2019-08-01 16:44 守护式等待 阅读(143) 评论(0) 推荐(0)