- 博客(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
207
原创 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
2667
原创 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
2803
原创 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
413
转载 前台技术--页面跳转的几种用法
前台技术--页面跳转的几种用法 按钮式: <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
484
原创 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
173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅