
编程
林永奇
这个作者很懒,什么都没留下…
展开
-
linux
ubuntu使用xshell教程(1):apt-get install openssh-serverssh ip 就可以了原创 2021-02-06 15:10:24 · 135 阅读 · 1 评论 -
入门django----ajax
from django.shortcuts import render, HttpResponsefrom app import modelsfrom django.http import JsonResponseCreate your views here.def register(request):if request.method == ‘POST’:username = req...原创 2019-03-11 12:21:32 · 155 阅读 · 0 评论 -
django-url反向代理
Title点我进index2from django.urls import path,include,re_pathfrom app import viewsurlpatterns = [re_path(r'^index/$',views.index,),re_path(r'^index2/$',views.index2,name='aa')]f...原创 2019-03-11 12:31:42 · 543 阅读 · 0 评论 -
视图类
from django.shortcuts import render, HttpResponsefrom app import modelsCreate your views here.from django.views import Viewclass Login(View):def get(self, request):return render(request, ‘login....原创 2019-03-11 12:33:15 · 176 阅读 · 0 评论 -
python中 “is” 和 "=="的区别----内存地址的深入理解
直接上手撸代码我们先看一段(字符串情况):a=“hello world”b=“hello world”打印出结果:print(id(a)) #5619056print(id(b)) #5619056print(a is b) #Trueprint(a==b) #True(列表的情况)c=[1,2,3]d=[1,2,3]print(id(c)) #19029...原创 2019-03-16 15:18:59 · 681 阅读 · 0 评论 -
python---互亿--短信验证
**import requests** #引入此模块url = "http://106.ihuyi.com/webservice/sms.php?method=Submit" #请求地址mobile='此处填注册的手机号码' #注意是字符串类型account="此处填APIID"password="此处填APIKEY"header = {'Content-ty..原创 2019-03-12 21:18:47 · 286 阅读 · 0 评论 -
xpath爬取安居客数据并保存数据库
import requestsfrom lxml import etreeimport pymysqlfrom fake_useragent import UserAgentclass AnJuKe: def __init__(self): self.count = 1 #计数 self.get_html() #一定要记得调用函数 ...原创 2019-03-24 22:10:33 · 1001 阅读 · 0 评论