女己。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年6月1日

摘要: 登录注册<form action="" method="post"> 用户名:<input type="text" name="username"><br> 密码:<input type="password" name="password"><br> 确认密码:<input type="passwo 阅读全文
posted @ 2019-06-01 14:26 女己。 阅读(159) 评论(0) 推荐(0)

摘要: Ajax class Getcate(View): def get(self,request): cate=Cate.objects.all() return render(request,'com/getcate.html',locals()) def post(self,request): me 阅读全文
posted @ 2019-06-01 14:25 女己。 阅读(103) 评论(0) 推荐(0)

摘要: 图文混排表字段用TextFiled<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script type="text/javascript" src="/static/admin/j 阅读全文
posted @ 2019-06-01 14:23 女己。 阅读(153) 评论(0) 推荐(0)

摘要: 带有注释的数据库脚本,大家对对:https://github.com/LiuJunjie0619/NewInfor/blob/master/database.py javascript基础语法https://www.cnblogs.com/huangshikun/p/6565374.html sta 阅读全文
posted @ 2019-06-01 14:20 女己。 阅读(147) 评论(0) 推荐(0)

摘要: 图书管理 from flask import *from flask_sqlalchemy import SQLAlchemy# 多条件查询,and_等于where id=1 and name='张飞'# 多条件查询,or_等于where id=1 and name='张飞'from sqlalch 阅读全文
posted @ 2019-06-01 14:17 女己。 阅读(237) 评论(0) 推荐(0)

摘要: 图片上传表字段用ChairFiledsettings:STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'),]# 上传图片UPLOAD_ROOT = os.path.join(BASE_DIR,'upload') py文件:import osfr 阅读全文
posted @ 2019-06-01 14:10 女己。 阅读(180) 评论(0) 推荐(0)

摘要: 分页 from django.core.paginator import Paginator if request.method=="GET": cate=Cate.objects.all() page_count=3 #每页显示多少条 # computer=Computer.objects.all 阅读全文
posted @ 2019-06-01 14:09 女己。 阅读(119) 评论(0) 推荐(0)

2019年5月30日

摘要: # import threading #导入线程模块# def func():# print("越努力越幸运")# for i in range(10):# func_thread=threading.Thread(target=func) #为func执行函数创建线程# func_thread.s 阅读全文
posted @ 2019-05-30 20:54 女己。 阅读(954) 评论(0) 推荐(0)

摘要: #冒泡排序;# def bubble_sort(alist):# n=len(alist) #计算序列长度# for i in range(n-1): #遍历无序序列;# for j in range(n-1-i): #构建循环比较相邻的元素条件;# if alist[j]>alist[j+1]: 阅读全文
posted @ 2019-05-30 20:53 女己。 阅读(250) 评论(0) 推荐(0)

摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <script src="vue.js"></script> <style> .a{ width:100px; height:100px 阅读全文
posted @ 2019-05-30 20:51 女己。 阅读(426) 评论(0) 推荐(0)