首页
畅所欲言
友情链接
壁纸大全
数据统计
推荐
工具箱
在线白板
Search
1
职教云小助手重构更新,职教云助手最新版下载地址【已和谐】
13,961 阅读
2
职教云-智慧职教,网课观看分析(秒刷网课)
11,328 阅读
3
gradle-5.4.1-all.zip下载
9,314 阅读
4
职教云-智慧职教,签到补签分析(逆天改命系列)
8,120 阅读
5
一个优秀的程序员从写文档开始:免费领14个月语雀云笔记会员
6,982 阅读
学习笔记
Web
Python
转载文章
算法刷题
JS逆向
综合笔记
安卓
物联网
Java
C
资源收集
软件收藏
网络资源
影视专辑
TED英语角
随便写写
随手拍
登录
/
注册
Search
Lan
累计撰写
615
篇文章
累计收到
629
条评论
首页
栏目
学习笔记
Web
Python
转载文章
算法刷题
JS逆向
综合笔记
安卓
物联网
Java
C
资源收集
软件收藏
网络资源
影视专辑
TED英语角
随便写写
随手拍
页面
畅所欲言
友情链接
壁纸大全
数据统计
推荐
工具箱
在线白板
搜索到
615
篇与
的结果
2022-11-08
invalid request block size: 6030 (max 4096)...skip
检查了一下请求日志,发现报错了invalid request block size: 6030 (max 4096)...skip 被uwsgi拦截了。解决方案:配置文件新增一行buffer-size 32768
2022年11月08日
173 阅读
0 评论
0 点赞
2022-11-08
C语言 二叉树的最大值和高度
int get_height(Node *node) { int left, right, max; if (node) { left = get_height(node->left); right = get_height(node->right); max = left > right ? left : right; return max + 1; } else { return 0; } } int get_max(Node *node) { if (node) { int ml = get_max(node->left); int mr = get_max(node->right); int root = node->data; int max = ml > mr ? ml : mr; return max > root ? max : root; } else { return -1; } }
2022年11月08日
240 阅读
0 评论
0 点赞
2022-11-07
图床,通过Python调用api上传图片到Gitlab
用过一段时间的PicGo,但是感觉太重了,为了一个上传图片去装一个软件有点太麻烦。然后目前个人感觉也就Gitlab速度还可以一点,于是昨天翻了官方文档踩了很多坑,总算搞好了。现将关键代码放到这里。 file_path = datetime.datetime.now().strftime('zb_users/upload/%Y/%m/') headers = {'PRIVATE-TOKEN': '这里放你的项目token'} img = file.file.read() ext = file.content_type.split('/')[-1] file_path = urllib.parse.quote(file_path + uuid.uuid4().hex + '.' + ext).replace('/', '%2f') url = f'https://gitlab.com/api/v4/projects/这里放你的项目ID/repository/files/{file_path}' response = await requests.post(url, headers=headers, json={ 'branch': 'master', 'content': base64.b64encode(img).decode('utf-8'), 'author_email': 'blog@lanol.cn', 'author_name': 'Lan', 'encoding': 'base64', 'commit_message': 'www.lanol.cn' }) res = await response.json()然后花了点时间写了个小前端用来上传,支持选择,拖拽,粘贴文件进行上传。
2022年11月07日
504 阅读
1 评论
0 点赞
2022-11-07
爱普生l310打印机 打印不出蓝色和黄色 但是有墨水
喷嘴检测打印效果:一开始我以为是没有墨水了,然后我看了下墨盒,里面墨水还有很多。然后经过周折,想起会不会是喷头堵住了,于是使用驱动自带的打印头清洗。然后发现还是没有用。于是开始自我怀疑。后面发现清洗之后本来彻底没颜色了,但是多了一条小蓝线。于是又看见一个大墨量清洗。尝试之后就可以了,果然喷墨打印机还是得经常用不能闲着,
2022年11月07日
3,631 阅读
0 评论
3 点赞
2022-11-04
二叉树的C实现
#include <stdio.h> #include <stdlib.h> typedef struct node { int data; struct node *left; struct node *right; } Node; typedef struct tree { Node *root; } Tree; void insert(Tree &tree, int value) { Node *node = static_cast<Node *>(malloc(sizeof(Node))); node->data = value; node->left = NULL; node->right = NULL; if (tree.root == NULL) { tree.root = node; } else { Node *temp = tree.root; while (temp != NULL) { if (value < temp->data) { if (temp->left == NULL) { temp->left = node; return; } else { temp = temp->left; } } else { if (temp->right == NULL) { temp->right = node; return; } else { temp = temp->right; } } } } } void display(Node *node) { if (node != nullptr) { display(node->left); printf("%d\n", node->data); display(node->right); } } int main() { int arr[7] = {6, 3, 8, 2, 5, 1, 7}; Tree tree; tree.root = NULL; for (int i = 0; i < 7; ++i) { insert(tree, arr[i]); } display(tree.root); }
2022年11月04日
147 阅读
0 评论
0 点赞
2022-11-01
Mac 安装mysqlclient报错,OSError: mysql_config not found 的解决方法
raise EnvironmentError("%s not found" % (mysql_config.path,)) OSError: mysql_config not found先安装brew(如果没有)/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"安装mysql-connector-cbrew install mysql-connector-c添加到PATH根据提示,添加到你的PATH
2022年11月01日
469 阅读
0 评论
0 点赞
2022-10-25
TED英语角||音频版:人的一生其实只有9年
When saked "What is the biggest mistake we make in lif?" the Buddha replied,"The biggest mistake is you tink you have time." Time is free,but it's priceless.You Can't own it,but you can use it.You can't keep it,but youcan spend it.And once it's lost you can nerver get it back.The average person lives 78 years.We spend 28.3 years of out life sleeping.That's almost a third of out life,but 30% of us want to leave out current jobs.Time is more valuable than money.You can get more money,but you can never get more time.We spend 9 years on TV,and social media.We spend 6 years doing chores,We spend 4 years eating and drinking. We spend 3.5 years in education.We spend 2.5 years grooming. We spend 2.5 years shopping. We speed 1.3 years commuting. That leaves us wth 9 years.How will We spend that time?Steve Jobs said "Your time is limited, so don't waste it living someone else's life." So there's good news and there's bad news. The bad news is time flies; the good news is you're the pilot.Imagine you wake up every day with $86400 in your bank account. and at the end of the night it's all gone whether you spent it or not. And then the next day you get another $86400. What would we do with it?Every 86400 seconds are deposited into you life account.At the end of the day once they're all used up, you get a new 86400 seconds, We would never waste it if it was money,so why do we waste it when it comes to time? Those seconds are so much more powerful than dollars becasuse you can always make more dollars, you can't always make more time.To realize the value of 1 year, ask a student who failed a grade.To realize the value of 1 month,ask a monther who lost their child in the final month. To realize the value of 1 week, ask the editor of an online magazine. To realize the alue of 1 hour, ask the couple who;s in a long distance relationship. To realize the value of 1 minute, ask the person who just missed a bus,train,or plane, To realize the value of 1 second, ask the person who just missed an accident. To realize the value of a millisecond,ask the person who just camc 2nd at the Olympics.We think that it's people wasting out time,but it's really us giving them the permission to do that. And in reality, these 2 people live inside us, Don't let someone be a priority when all you are to them is an option. Some of us lose the people most important to us because we don't value their time. Some of us don't recoginize how important someone is to us until they're gone.Inside all of us are 2 voices - 1 voice that wants to uplift,1 voice that wang us to expand.1 voice that wangt us to grow. And then ther's the other voice- The voice that holds us back. The voice that makes us lazy. The voice that makes us complacent. The voice that restrists us from out potential.Every day from the moment we wake up until the moment we go to sleep, inside of us there's this battle between the 2 voices. And guess which one wins? The one that we listen to the most.The one that we feed. The one that we amplify.It is our choice of how we use our time.Life and time are the best two teachers. Life teaches us to make good use of time and time teaches us the value of value of Life. And as William Shakepeare said,"Time is very slow for those who want, very fast for those who are scared,very long for those who are sad, and very short for those who celebrate, but for those who love, time is eternal."{bilibili bvid="BV1U24y1X7Z7" page=""/}{bilibili bvid="BV1Le4y1J7oY" page=""/}
2022年10月25日
378 阅读
0 评论
0 点赞
1
...
13
14
15
...
88