上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 直接看reference Reference Python Enchancement Proposals(peps) 菜鸟教程-Python 函数装饰器 python101-chapter25 Decorators 廖雪峰-装饰器 Intermedium python python进阶 python 阅读全文
posted @ 2024-03-09 10:23 光辉233 阅读(12) 评论(0) 推荐(0)
摘要: 字典的迭代 d = {'a': 1, 'b': 2, 'c': 3} for key in d: print(key) for value in d.values(): print(value) for k,v in d.items(): print 索引,元素对 for i, value in e 阅读全文
posted @ 2024-03-09 09:52 光辉233 阅读(17) 评论(0) 推荐(0)
摘要: 1. 迭代(Iteration)与可迭代对象 如果给定一个list或tuple,我们可以通过for循环来遍历这个list或tuple,这种遍历我们称为迭代(Iteration), 这些可以直接作用于for循环的对象统称为可迭代对象:Iterable 2. 一种节省内存的可迭代对象generator- 阅读全文
posted @ 2024-03-09 09:52 光辉233 阅读(308) 评论(0) 推荐(0)
摘要: 函数定义 定义函数时,需要确定函数名和参数个数; 如果有必要,可以先对参数的数据类型做检查; 函数体内部可以用return随时返回函数结果; 函数执行完毕也没有return语句时,自动return None。 函数可以同时返回多个值,但其实就是一个tuple。 python空参数 What does 阅读全文
posted @ 2024-03-07 18:11 光辉233 阅读(81) 评论(0) 推荐(0)
摘要: 参数检查 调用函数时,如果参数个数不对,Python解释器会自动检查出来,并抛出TypeError: >>> my_abs(1, 2) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 阅读全文
posted @ 2024-03-07 17:21 光辉233 阅读(51) 评论(0) 推荐(0)
摘要: 三种模式 fast-forward --squash --no-ff fast-forward Git 合并两个分支时,如果顺着feature分支走下去可以到达main分支的话(main分支在feature分支开发期间没有新的提交),那么 Git 在合并两者时,只会简单地把指针右移,叫做“快进”(f 阅读全文
posted @ 2024-03-07 16:11 光辉233 阅读(988) 评论(0) 推荐(1)
摘要: Git管理的文件: 工作区->暂存区->仓库 git add把文件从工作区>>>>暂存区, git commit把文件从暂存区>>>>仓库, git diff查看工作区和暂存区差异, git diff --cached查看暂存区和仓库差异, git diff HEAD 查看工作区和仓库的差异,git 阅读全文
posted @ 2024-03-07 16:00 光辉233 阅读(42) 评论(0) 推荐(0)
摘要: Reference 如果百年后深度学习最终有了公认的数学理论作为基础,能解释实验中的各类玄学,那这个理论会长什么样子? 阅读全文
posted @ 2024-03-07 10:58 光辉233 阅读(29) 评论(0) 推荐(0)
摘要: 实数中蕴藏的数学结构 The set of real numbers has several standard structures: An order: each number is either less than or greater than any other number. Algebr 阅读全文
posted @ 2024-03-06 23:07 光辉233 阅读(44) 评论(0) 推荐(0)
摘要: Remote management 关机/重启 shutdown 查看或配置网卡信息 ifconfig ping 远程登录和配置文本 ssh scp 01. 关机&重启 命令shut [选项] [时间] 选项有 -r 用以重新启动 注意: 不指定选项和参数,默认表示1分钟之后关闭电脑 远程维护服务器 阅读全文
posted @ 2024-03-02 22:13 光辉233 阅读(86) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页