- 博客(3)
- 收藏
- 关注
原创 Linux 报错Certificate verification failed: The certificate is NOT trusted.
原因为未安装ca-certificates可以先编辑 /etc/apt/sources.list 文件临时使用http源nano /etc/apt/sources.list或者vim /etc/apt/sources.list粘贴或者更改源(https:// 到 http://)deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-freedeb http://mirrors.tuna.tsinghu
2021-03-11 23:02:06
24896
7
原创 C/C++ 二叉树
查找二叉树有一个特性对于所有的节点,都满足左子树上的所有节点都比自己的小,而右子树上的所有节点都比自己大————《挑战程序设计竞赛第二版》P78#include <iostream>#include <stdlib.h>using namespace std;typedef struct TreeNode{ int data; struct TreeNode *LT, *RT;}TreeNode, *TreeList;//创建一个叶子节点
2020-11-19 19:43:21
196
原创 Python 转换金额数字大写为数字小写
Python 转换金额大写为数字小写def toInt(value): isum = 0 nums = {'零': 0, '壹': 1, '贰':2, '叁': 3, '肆': 4, '伍': 5, '陆': 6, '柒': 7, '捌': 8, '玖':9} dw = {'拾': 3, '元': 2, '佰': 4, '仟': 5, '万' : 6, '角': 1, '分': 0} index = 0 while index < len(value):
2020-11-02 22:11:33
2186
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人