python3标准库httpclient使用

#coding=utf-8 import http.client, urllib.parse import http.client, urllib.parse import random USER_…

基于Vue2.0的分页

🔗 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> &…

ip命令配置docker --net=none的情况

网络配置细节 用户使用 --net=none 后,可以自行配置网络,让容器达到跟平常一样具有访问网络的权 限。通过这个过程,可以了解 Docker 配置网络的细节。 首先,启动一个 /bin/b…

小程序的nginx配置

# WebSocket 配置 map $http_upgrade $connection_upgrade { default upgrade; '' clos…

Python元类使用之ORM原理

# _*_ coding: utf-8 _*_ class Field(object): def __init__(self, name, column_type): se…

python设计模式:适配器模式

class Synthesizer: def __init__(self, name): self.name = name def __str__(self): …

解决systemd 下redis不能启动

[root@aliyun_1 ~]# vim /usr/lib/systemd/system/redis.service [Unit] Description=Redis persistent ke…

类实例函数的的装饰器

def required_login_1(func): def wrapper(request,*args,**kwargs): func(request,*args,**kw…

virtualenvwrapper的安装及问题解决

安装virtualenvwrapper yum install python-setuptools python-devel pip install virtualenvwrapper # lin…

sql

create database userinfo charset="utf-8"; use userinfo; create table it user info( ui_user…