摘要: 1.1 TCP SYN拒绝服务攻击 一般情况下,一个TCP连接的建立需要经过三次握手的过程,即: 1、 建立发起者向目标计算机发送一个TCP SYN报文; 2、目标计算机收到这个SYN报文后,在内存中创建TCP连接控制块(TCB),然后向发起者回送一个TCP ACK报文,等待发起者的回应; 3、 发 阅读全文
posted @ 2018-11-22 10:09 独爱米粒 阅读(1480) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-from Tkinter import *import difflibimport urllib2import urllib # python2.7才需要两个urllibimport json# 主框架部分 root = Tk()root.title(' 阅读全文
posted @ 2018-11-22 09:38 独爱米粒 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: import tkinterimport tkinter.filedialogimport osimport zipfileimport tkinter.messagebox#创建住窗口root = tkinter.Tk()root.minsize(700,500)root.title('xx的压缩 阅读全文
posted @ 2018-11-22 09:36 独爱米粒 阅读(615) 评论(0) 推荐(0) 编辑
摘要: import tkinter #导入tkinter模块root = tkinter.Tk()root.minsize(280,500)root.title('xx的计算器')#1.界面布局#显示面板result = tkinter.StringVar()result.set(0) #显示面板显示结果 阅读全文
posted @ 2018-11-22 09:35 独爱米粒 阅读(443) 评论(0) 推荐(0) 编辑
摘要: create table t_hero( id int unsigned auto_increment primary key, name varchar(10) unique not null, age tinyint unsigned default 0, gender set("男", "女" 阅读全文
posted @ 2018-11-22 09:31 独爱米粒 阅读(3115) 评论(0) 推荐(0) 编辑
摘要: a = re.findall('[\u4e00-\u9fa5]',str1,re.S) 阅读全文
posted @ 2018-11-22 09:29 独爱米粒 阅读(1902) 评论(0) 推荐(0) 编辑
摘要: TINYMCE_DEFAULT_CONFIG = { 'theme': 'advanced', 'width': 600, 'height': 400, } 阅读全文
posted @ 2018-11-22 09:28 独爱米粒 阅读(274) 评论(0) 推荐(0) 编辑
摘要: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'verbose': { 'format': '%(levelname)s %(asctime)s %(module)s %(lineno)d % 阅读全文
posted @ 2018-11-22 09:22 独爱米粒 阅读(688) 评论(0) 推荐(0) 编辑
摘要: sys.path.insert(0, os.path.join(BASE_DIR, 'apps')) 阅读全文
posted @ 2018-11-22 09:21 独爱米粒 阅读(871) 评论(0) 推荐(0) 编辑
摘要: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql',#数据库驱动 'NAME': 'login_db',#数据库名字 'USER': 'root',#mysql用户名 'PASSWORD': '123456',#mysql密 阅读全文
posted @ 2018-11-22 09:20 独爱米粒 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 找到自己的虚拟环境,以下是我自己的环境路径 D:\xunihuanjing\venv\Lib\site-packages\django\contrib\admin\migrations 然后删除里面的迁移记录。 阅读全文
posted @ 2018-11-22 09:19 独爱米粒 阅读(1324) 评论(0) 推荐(0) 编辑
摘要: generate_uuid: function(){ var d = new Date().getTime(); if(window.performance && typeof window.performance.now "function"){ d += performance.now(); / 阅读全文
posted @ 2018-11-22 09:18 独爱米粒 阅读(308) 评论(0) 推荐(0) 编辑
摘要: AUTH_USER_MODEL = 'users.User' (应用名。模型类名) 阅读全文
posted @ 2018-11-22 09:17 独爱米粒 阅读(238) 评论(0) 推荐(0) 编辑
摘要: CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/0", "OPTIONS": { "CLIENT_CLASS": "django_redis 阅读全文
posted @ 2018-11-22 09:16 独爱米粒 阅读(1543) 评论(0) 推荐(0) 编辑
摘要: 'corsheaders', 在MIDDLEWARE中添加: 'corsheaders.middleware.CorsMiddleware', 最后添加:CORS_ORIGIN_ALLOW_ALL=True 阅读全文
posted @ 2018-11-22 09:13 独爱米粒 阅读(354) 评论(0) 推荐(0) 编辑