会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
柒禾
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
下一页
2020年10月13日
Django之ORM操作!!!
摘要: 动态URL、ORM操作 创建虚拟环境: https://blog.csdn.net/qq_43590972/article/details/89186236 创建项目分类App python manage.py startapp app02 配置python虚拟环境: 升级pip python -m
阅读全文
posted @ 2020-10-13 22:52 路神
阅读(78)
评论(0)
推荐(0)
编辑
2020年10月11日
LeetCode刷题记录2020-10-10之日常划水!!!
摘要: 面试题 16.26. 计算器 class Solution: def calculate(self, s: str) -> int: # return eval(s.replace('/', '//')) numbers = [] if isinstance(s, str): s = s.repla
阅读全文
posted @ 2020-10-11 00:26 路神
阅读(55)
评论(0)
推荐(0)
编辑
2020年10月10日
Python核心编程之装饰器
摘要: 引入: 需求:运行函数时得到该函数的名称版本一:直接print函数名称缺陷:当函数名称发生改变时,print中的内容也需要改变。硬编码 import inspect ''' 转载:https://www.cnblogs.com/cicaday/p/python-decorator.html 需求:运
阅读全文
posted @ 2020-10-10 22:06 路神
阅读(128)
评论(0)
推荐(0)
编辑
对邮箱的操作
摘要: 学习地址:http://blog.szwyll.com/archives/146 1.登录邮箱 # 定义一些常量 # 收件人email, 发件人email,登录邮箱的授权码(mail_password) server = smtplib.SMTP() server.connect('smtp.qq.
阅读全文
posted @ 2020-10-10 00:31 路神
阅读(241)
评论(0)
推荐(0)
编辑
LeetCode刷题记录2020-10-09之日常划水!!!
摘要: 题目一、 141. 环形链表(打卡) # 破坏链表数据、快慢指针都行 # 这里就放置一个大佬的优秀代码,学到了学到了 f = open("user.out", "w") while True: try: param_1 = input() param_2 = int(input()) f.write
阅读全文
posted @ 2020-10-10 00:23 路神
阅读(118)
评论(0)
推荐(0)
编辑
2020年10月8日
LeetCode刷题记录2020-10-08之动态规划入门!!!线性DP(三)
摘要: 题目一、打卡344. 反转字符串 def reverseString(self, s: List[str]) -> None: """ Do not return anything, modify s in-place instead. """ # 双指针、元素交换 i = 0 j = len(s)
阅读全文
posted @ 2020-10-08 23:49 路神
阅读(77)
评论(0)
推荐(0)
编辑
2020年10月7日
LeetCode刷题记录2020-10-07之动态规划入门!!!线性DP(二)
摘要: 题目一、 75. 颜色分类(打卡) def sortColors(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ # lenth = len(nums) # c
阅读全文
posted @ 2020-10-07 23:27 路神
阅读(108)
评论(0)
推荐(0)
编辑
2020年10月6日
LeetCode刷题记录2020-10-06之动态规划入门!!!线性DP
摘要: 题目一(打卡)、 834. 树中距离之和 def sumOfDistancesInTree(self, N: int, edges: List[List[int]]) -> List[int]: # 生成邻接表(Adjacency List) aList = [[] for _ in range(N
阅读全文
posted @ 2020-10-06 23:21 路神
阅读(109)
评论(0)
推荐(0)
编辑
2020年10月5日
LeetCode刷题记录2020-10-05之Double Pointer!!!
摘要: 题目一: 454. 四数相加 II class Solution: def fourSumCount(self, A: List[int], B: List[int], C: List[int], D: List[int]) -> int: # 字典两两进行微处理 count = 0 d = {}
阅读全文
posted @ 2020-10-05 21:14 路神
阅读(142)
评论(0)
推荐(0)
编辑
2020年9月16日
Python核心编程之属性查找过程!
摘要: 来源:https://www.cnblogs.com/xyz2b/p/10529068.html 图片:https://www.cnblogs.com/854594834-YT/gallery/image/338986.html
阅读全文
posted @ 2020-09-16 21:10 路神
阅读(146)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页