自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

转载 django settings.py最佳配置实例代码

# encoding=utf-8import osimport socketSITE_ID = 1# 项目的根目录# 简化后面的操作PROJECT_ROOT = os.path.dirname(os.path.dirname(__file__))# 加载应用# 把应用添加到INSTALLED_APPS中from apps.kuser.mysetting import myapp as kuser_...

2018-06-12 11:20:30 162

原创 android与python服务器利用Okhttp通信

python(view.py)import jsonfrom django.shortcuts import render,HttpResponsefrom .models import Wheel, Nav, Mustbuy, Shop, Mainshow, FoodTypes, Goods# Create your views here.def home(request): ...

2018-06-12 10:54:45 2566

原创 android与python服务器socket通信

pythonserver.py#创建TCP服务器from socket import *#返回时间的from time import ctime#定义域名和端口号HOST,PORT='',8001#创建缓冲区的大小(1M)BUFFER_SIZE=1024ADDR=("localhost",PORT)#创建服务器的套接字 第一个参数代表IP 第二个基于TCP的数据流 代表TCP/I...

2018-06-12 10:17:02 2707

原创 Sort_list——Sort a linked list in O(n log n) time using constant space complexity. 合并排序

Sort a linked list in O(n log n) time using constant space complexity.  /* class ListNode { *     int val; *     ListNode next; *     ListNode(int x) { *         val = x; *         next = null; *    ...

2018-03-19 11:15:50 368

转载 前台技术--页面跳转的几种用法

前台技术--页面跳转的几种用法 按钮式: <INPUT name="pclog" type="button" value="GO" onClick="location.href='http://www.lezhu99.com/'">  链接式: <a href="javascript:history.go(-1)">返回上一步</a&a

2018-03-19 10:40:25 441

原创 leetCode刷题Reorder_list (快速求出链表的中间结点——快慢指针方法)

题目:Given a singly linked list L: L 0→L 1→…→L n-1→L n,reorder it to: L 0→L n →L 1→L n-1→L 2→L n-2→… You must do this in-place without altering the nodes' values. For example,Given{1,2,3,4}, reorder it ...

2018-03-03 15:34:35 136

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除