摘要:        
if request.META.get('HTTP_X_FORWARDED_FOR'): ip = request.META.get("HTTP_X_FORWARDED_FOR") else: ip = request.META.get("REMOTE_ADDR") print("ip : ", i    阅读全文
posted @ 2020-12-18 21:11
睁yan-ii
阅读(373)
评论(0)
推荐(0)
        
            
        
        
摘要:        
def my_decorator(func): def wrapper(request,*args,**kwargs): print('装饰器被调用了') return func(request,*args,**kwargs) # 调 post 方法 return wrapper 调用    阅读全文
posted @ 2020-12-18 21:10
睁yan-ii
阅读(60)
评论(0)
推荐(0)
        
            
        
        
摘要:        
html <div class="button"><van-button type="info" v-show="show" @click="getCode">获取验证码</van-button><van-button type="info" v-show="!show" class="count"    阅读全文
posted @ 2020-12-18 21:07
睁yan-ii
阅读(1578)
评论(0)
推荐(0)
        
            
        
        
摘要:        
from django.utils.deprecation import MiddlewareMixin class Myddleware(MiddlewareMixin): def process_request(self, request): pass def process_view(self    阅读全文
posted @ 2020-12-18 21:06
睁yan-ii
阅读(107)
评论(0)
推荐(0)
        
            
        
        
摘要:        
bytes主要是给在计算机看的,string主要是给人看的 中间有个桥梁就是编码规则,现在大趋势是utf8 bytes对象是二进制,很容易转换成16进制,例如\x64 string就是我们看到的内容,例如'abc' string经过编码encode,转化成二进制对象,给计算机识别 bytes经过反编    阅读全文
posted @ 2020-12-18 21:04
睁yan-ii
阅读(1010)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1 连接 import pymongo mongo_client=pymongo.MongoClient(host='localhost',port=27017) db=mongo_client.myip table=db.myabac 2 添加数据 table.insert( { item : "    阅读全文
posted @ 2020-12-18 20:57
睁yan-ii
阅读(157)
评论(0)
推荐(0)
        
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号