上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 139 下一页
摘要: 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 阅读(565) 评论(0) 推荐(0)
摘要: 本文简要介绍如何通过共享cookie完成账号共享(共享cookie的起因是部分基于微信小程序的平台并不支持直接的账号密码登陆,需要扫码,无法直接通过共享账号密码完成账号共享;除此之外,cookie共享账号还可以用在诸如短期共享账号而不泄露密码、不被服务器查封等场景下)工具:Chrome(即谷歌浏览器)、Chrome插件:EditThisCookie操作:1.前期准备:安装EditThisCooki... 阅读全文
posted @ 2020-05-29 16:47 katago 阅读(3556) 评论(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 阅读(10120) 评论(0) 推荐(0)
摘要: // https://chuna2.787528.xyz/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 阅读(258) 评论(0) 推荐(0)
摘要: Python的输入数野生字符串,需要自己转型,常用的转型函数有: strip :将两端的空白字符去掉,返回str slipt :将字符串用空白字符分开,返回[str] map:把list里面的值映射到指定类型,返回[type] isspace:是否用空行组成 EOF用来抓异常 输出加','不换行 Python3不能用raw_input(),而是用input()就行了,输出必须加“... 阅读全文
posted @ 2020-05-28 16:11 katago 阅读(527) 评论(0) 推荐(0)
摘要: import random import string # 随机整数:包含头尾 print random.randint(1,50) # 随机选取0到100间的偶数: print random.randrange(0, 101, 2) # 随机浮点数: print random.random() [0,1) print random.uniform(1,... 阅读全文
posted @ 2020-05-28 16:09 katago 阅读(826) 评论(0) 推荐(0)
摘要: // https://vjudge.net/problem/HackerRank-cpp-lower-bound 大致题意和这个差不多 #include #include #include using namespace std; const int maxn=100000+10; int a[maxn]; int n; int q; int my_low... 阅读全文
posted @ 2020-05-27 16:45 katago 阅读(260) 评论(0) 推荐(0)
摘要: #include /* printf */ #include /* round, floor, ceil, trunc */ inline int myIntRound(double dInput) { if(dInput >= 0.0f) { return ((int)(dInput + 0.5f)); } re... 阅读全文
posted @ 2020-05-27 15:51 katago 阅读(1150) 评论(0) 推荐(0)
摘要: 报错原因 jack不支持多用户同时编译,所以经常出现jack server报错的现象 解决方法 编辑 $home/.jack,$home/.jack-settings 和 $home/.jack-server/config.properties,修改SERVER_PORT_SERVICE和SERVER_PORT_ADMIN的端口号,然后保存。 如果权限不对可以执行下面的命令修改权限: ... 阅读全文
posted @ 2020-05-27 10:20 katago 阅读(931) 评论(0) 推荐(0)
摘要: #include #include #include using namespace std; const int maxn=1000+5; long long fib[maxn]={1, 1}; void fibonacci(int n) { for(int i=2;i<=n;i++) { fib[i] = fib[i-1]... 阅读全文
posted @ 2020-05-26 18:09 katago 阅读(1694) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 139 下一页