![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程语言
羊同学
这个作者很懒,什么都没留下…
展开
-
Sublime Text3搭建C++编译系统
Sublime Text3搭建C++编译系统在sublime中新建一个编译系统粘贴如下代码到文件中,并保存为C.sublime-build{ "cmd": ["g++", "-std=c++17", "-lstdc++", "${file_path}/${file_base_name}", "-o&原创 2018-09-21 21:59:19 · 779 阅读 · 0 评论 -
Python标准库smtplib的Bug解决
此Bug出现在smtp.SMTP_SSL()类Bug产生原因当我们在SMTP_SSL类实例化的时候直接传入host及port时,如import smtplibsmtp_server = "smtp.163.com"con1 = smtplib.SMTP_SSL(smtp_server, 465)因为在SMTP_SSL类实例化的时候的时候有一个基类的初始化,如果你传了host和...原创 2019-02-16 07:31:56 · 2380 阅读 · 0 评论 -
Python三方库PySearcher的使用
PySearcherPython写的搜索引擎,支持在结果集上进行多次搜索。可以搜索多个指定目录下的多种格式文件,可以指定文件名后缀、设置结果内容块的长度、或者通过Vscode或Sublime Text自动打开指定文件使用场景当你记过笔记但是忘了文件名叫什么的时候;当你敲过代码,但是不知道在哪个文件里的时候;当你从网上下载了资料,但是找不到想要找的内容的时候;安装pip install -...原创 2019-02-17 22:53:24 · 1026 阅读 · 0 评论 -
python递归计数及结束递归
题目:搜索旋转排序数组class Solution: TOTAL = 0 RUN = True def search(self, nums: List[int], target: int) -> int: # 将数组一分为二,分别比头尾,尾大于头为有序,剩下的为无序 i, j = 0, len(nums) - 1 r...原创 2019-04-09 00:27:23 · 2348 阅读 · 0 评论 -
Python Lambda表达式执行多条语句
saying = 1hello = lambda value: exec("global saying; saying += 1;print(value + saying)")hello(1)hello(1)hello(1)hello(1)hello(1)运行结果Connected to pydev debugger (build 191.6605.12)34567...原创 2019-04-24 12:01:34 · 8068 阅读 · 0 评论