摘要: 1. github高效寻找项目 高级搜索 # 按照项目名/仓库名搜索(大小写不敏感) in:name xxx # 按照README搜索(大小写不敏感) in:readme xxx # 按照description搜索(大小写不敏感) in:description xxx # stars数大于xxx s 阅读全文
posted @ 2022-03-07 20:30 qwaszx1! 阅读(75) 评论(0) 推荐(0)
摘要: 1 linux服务器安全(ubuntu举例) 1.1 设置服务器禁PING echo "1"> ./icmp_echo_ignore_all,将icmp_echo_ignore_all值设置为1,表示不响应ping操作。重启失效,想让重启生效需把该文件加入系统设置中 1.2 禁止Contral+Al 阅读全文
posted @ 2022-01-24 22:53 qwaszx1! 阅读(181) 评论(0) 推荐(0)
摘要: 代码 涉及函数功能: 返回指定文件夹下所有指定类型(代码以txt实例)的文件,递归查找 根据给定的字符串(支持正则表达式),返回在所有txt文件中查找包含所给字符串的行 将结果存放在xlsx文件中,第一列是文件路径,第二列是返回的行,匹配不上则为空 from tkinter import * fro 阅读全文
posted @ 2022-01-18 21:02 qwaszx1! 阅读(208) 评论(0) 推荐(0)
摘要: 1 LAMP架构 流程图 A:apache,动静分离,静态数据找到后直接返回,动态数据转发到应用服务器/数据库,进一步处理后再返回 2 apache安装 命令行安装,apt-get install apache2 查看端口,确保安装成功,默认监听80端口,netstat -tunlp|grep ap 阅读全文
posted @ 2022-01-05 20:54 qwaszx1! 阅读(119) 评论(0) 推荐(0)
摘要: 1 安装nginx 下载安装nginx,apt-get install nginx 查看nginx是否安装成功,nginx -v 启动nginx,service nginx start 查看端口命令, netstat -aptn|grep nginx,使用netstat命令时需先安装 net-too 阅读全文
posted @ 2022-01-05 20:23 qwaszx1! 阅读(50) 评论(0) 推荐(0)
摘要: 1、ubuntu允许SSH登录 1.1 ubuntu发行版安装/开启ssh服务 安装SSH服务端,sudo apt-get install openssh-server 开启SSH服务,sudo /etc/init.d/ssh start或service ssh start 查看SSH服务端是否启动 阅读全文
posted @ 2022-01-05 20:23 qwaszx1! 阅读(44) 评论(0) 推荐(0)
摘要: 1. Tkinter学习 1.1 label标签-Label ​ import tkinter as tk app = tk.Tk() app.title("TK窗口1") theLabel = tk.Label(app, text="我的第二个窗口程序!") theLabel.pack() # 自 阅读全文
posted @ 2021-10-17 22:40 qwaszx1! 阅读(99) 评论(0) 推荐(0)
摘要: 顺序查找,时间复杂度O(N); 二分查找,时间复杂度O(logN),但是二分查找要求顺序表。 函数:enumerate() 函数用于将一个可遍历的数据对象(如列表、元组或字符串)组合为一个索引序列,同时列出数据和数据下标,一般用在 for 循环当中. enumerate(sequence,[star 阅读全文
posted @ 2021-07-19 00:16 qwaszx1! 阅读(260) 评论(0) 推荐(0)
摘要: 黑色背景效果 test line2 方法: 把下面的代码复制进CCS .cnblogs-markdown .hljs { display: block; overflow-x: auto; /*padding: 1.6em 3em !important;*/ padding: 0.5em !impo 阅读全文
posted @ 2021-05-23 18:41 qwaszx1! 阅读(51) 评论(0) 推荐(0)
摘要: 类的组合 比如有两个类A,类B,用类C把类A和类B组合起来,使得C有A和B的属性方法。 class Turtle: def __init__(self,x): self.num = x class Fish: def __init__(self,y): self.num = y class Pool 阅读全文
posted @ 2021-05-23 17:58 qwaszx1! 阅读(51) 评论(0) 推荐(0)
HTML