学习笔记
黑夜中起飞
这个作者很懒,什么都没留下…
展开
-
nodejs配置静态资源
nodejs配置静态资源转载 2022-09-04 20:53:53 · 615 阅读 · 0 评论 -
微信公众号返回码变量
微信公众号返回码原创 2022-08-27 21:15:50 · 6345 阅读 · 0 评论 -
安装git之后要做的事情,
git 配置原创 2022-08-25 23:12:16 · 577 阅读 · 0 评论 -
nodejs request模块post 请求使用 -- 实例 获取微信公众号素材列表
post请求有几种数据的发送方式原创 2022-08-23 02:16:18 · 343 阅读 · 0 评论 -
nginx配置相关
nginx 配置项信息原创 2022-08-16 00:13:20 · 35 阅读 · 0 评论 -
堆排序算法--Python语音实现
#!/usr/bin/pythondef Heapsort(lis):for i in range(len(lis)//2-1,-1,-1):adjustHeap(lis,i,len(lis))for j in range(len(lis)-1,0,-1):swap(lis,0,j)adjustHeap(lis,0,j)def adjustHeap(lis,i,j):t = lis[i]tI = 2i+1while tI < j:if tI+1 < j and lis[tI原创 2020-06-11 17:13:08 · 124 阅读 · 0 评论 -
比较容易理解的排序算法文章
堆排序:一步步给你讲解堆排序,很容易看懂https://www.cnblogs.com/lanhaicode/p/10546257.html原创 2020-06-11 12:05:51 · 106 阅读 · 0 评论 -
python关于字符串的8个方法
str.lower() 和 str.upper() ,将字符串置为小写、大写**str.split(sep=None),**返回一个列表,由str根据sep分隔符分隔而成**str.count(sub) ,**返回sub在str中出现的次数**str.replace(old,new),**将所有的old字符串,替换成new字符串**str.center(width[,fillchar]),**字符串str根据宽度width居中,fillchar可选print “python”.center(20,原创 2020-06-07 13:45:45 · 126 阅读 · 0 评论 -
用Python输出,帕斯卡三角形
-- coding: UTF-8 --def pask(n):list1 = [1]listT = []listT.append(list1)listAdd = []for x in range(2,n+1):for y in range(x):if y == 1:listAdd.append(1)if y > 1 :listAdd.append(listT[x-2][y-2]+listT[x-2][y-1])if y == x - 1:listAdd.append(1)原创 2020-06-06 01:43:47 · 1751 阅读 · 0 评论