上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 138 下一页
摘要: 参考https://en.wikipedia.org/wiki/Triea trie, also called digital tree or prefix tree, is a kind of search tree—an ordered tree data structure used to store a dynamic set or associative array where the ... 阅读全文
posted @ 2020-06-08 17:05 katago 阅读(354) 评论(0) 推荐(0)
摘要: https://www.jetbrains.com/help/pycharm/creating-and-running-your-first-django-project.html上面链接基本就是吧django的 polls示例做了一遍。主要运行manager 命令时候可以用:Ctrl+Alt+R然后就可以直接输入 runserver 之类的 阅读全文
posted @ 2020-06-05 17:48 katago 阅读(379) 评论(0) 推荐(0)
摘要: Problem 1533 Subset Accept: 299 Submit: 740Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description整数集合Sn={1,2,...,n}的非空子集如果不含两个相邻的自然数,则称为好子集。你的任务是求好子集的个数。 Input有多组测试数据。每个测试数据一行,有一个正整数,... 阅读全文
posted @ 2020-06-03 17:01 katago 阅读(150) 评论(0) 推荐(0)
摘要: djangorestframework使用时,发现如下错误:AttributeError: 'OrderedDict' object has no attribute 'register'原因是markdown版本太低https://stackoverflow.com/questions/57479412/attributeerror-at-ordereddict-object-has-no-at... 阅读全文
posted @ 2020-06-03 11:20 katago 阅读(202) 评论(0) 推荐(0)
摘要: #vim /etc/ssh/sshd_config找到下面两行#ClientAliveInterval 0#ClientAliveCountMax 3去掉注释,改成ClientAliveInterval 30ClientAliveCountMax 86400这两行的意思分别是1、客户端每隔多少秒向服务发送一个心跳数据2、客户端多少秒没有相应,服务器自动断掉连接重启sshd服务#service ss... 阅读全文
posted @ 2020-06-02 15:10 katago 阅读(344) 评论(0) 推荐(0)
摘要: ubuntu 14.04 发现只有python3.5添加源:add-apt-repository ppa:deadsnakes/ppaapt-get updateapt-get install python3.7 python3.7-venv. venv/bin/activatepip install Flask 阅读全文
posted @ 2020-06-02 14:37 katago 阅读(558) 评论(0) 推荐(0)
摘要: 本文简要介绍如何通过共享cookie完成账号共享(共享cookie的起因是部分基于微信小程序的平台并不支持直接的账号密码登陆,需要扫码,无法直接通过共享账号密码完成账号共享;除此之外,cookie共享账号还可以用在诸如短期共享账号而不泄露密码、不被服务器查封等场景下)工具:Chrome(即谷歌浏览器)、Chrome插件:EditThisCookie操作:1.前期准备:安装EditThisCooki... 阅读全文
posted @ 2020-05-29 16:47 katago 阅读(3344) 评论(0) 推荐(0)
摘要: . Js 操作 Cookie.一般来说,只有服务器操作Cookie 才能保证一些必要的安全。但有时候,可能需要前端来增删改查 Cookie, 这个时候咱们的主角出现了——HttpOnly(๑•̀ㅂ•́) ✧.HttpOnly: HttpOnly is an additional flag included in a Set-Cookie HTTP response header. Using th... 阅读全文
posted @ 2020-05-29 15:29 katago 阅读(10089) 评论(0) 推荐(0)
摘要: // https://www.cnblogs.com/buptLizer/archive/2011/09/18/2180723.html #include #include #include #include using namespace std; const int N=100002; const int sonNum=28; struct nodeIdx{ ... 阅读全文
posted @ 2020-05-28 16:46 katago 阅读(256) 评论(0) 推荐(0)
摘要: Python的输入数野生字符串,需要自己转型,常用的转型函数有: strip :将两端的空白字符去掉,返回str slipt :将字符串用空白字符分开,返回[str] map:把list里面的值映射到指定类型,返回[type] isspace:是否用空行组成 EOF用来抓异常 输出加','不换行 Python3不能用raw_input(),而是用input()就行了,输出必须加“... 阅读全文
posted @ 2020-05-28 16:11 katago 阅读(518) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 138 下一页