摘要: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] @="在此处打开命令提示符" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\shel 阅读全文
posted @ 2020-04-07 20:28 Sundance8866 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/zanfeng/article/details/52164124 / https://www.cnblogs.com/hokky/p/8434236.html 使用print输出各型的 字符串 整数 浮点数 出度及精度控制 1 2 3 4 strH 阅读全文
posted @ 2020-04-07 19:40 Sundance8866 阅读(534) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/yuanchenqi/articles/5732581.html https://www.cnblogs.com/linhaifeng/articles/6384466.html#_label2 一 time与datetime模块 在Python中,通 阅读全文
posted @ 2020-04-06 12:22 Sundance8866 阅读(143) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6379069.html https://www.cnblogs.com/yuanchenqi/articles/5732581.html 一 模块介绍 1、什么是模块? 大家之前在编写ATM作业时,思路是先将程 阅读全文
posted @ 2020-04-05 22:17 Sundance8866 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 文件重命名(修改后保存) import os # os.rename('a.txt','a.txt.bak') os.rename('b.txyt','a.txt') tag用法 (退出层级,tag用来退回根部) tag=True while tag: print('leve1') choice=i 阅读全文
posted @ 2020-04-05 21:36 Sundance8866 阅读(340) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/6140395.html 一 什么是装饰器 器即函数 装饰即修饰,意指为其他函数添加新功能 装饰器定义:本质就是函数,功能是为其他函数添加新功能 二 装饰器需要遵循的原则 1.不修改被装饰函数的源代码(开放封闭原 阅读全文
posted @ 2020-04-04 14:46 Sundance8866 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 一 迭代器 一 迭代的概念 1.迭代器协议是指:对象必须提供一个next方法,执行该方法要么返回迭代中的下一项,要么就引起一个Stopiteration异常,以终止迭代(只能往后不能往前退) 2.可迭代对象:实现了迭代器协议的对象(如何实现:对象内部定义一个_iter_()方法) 3.协议是一种约定 阅读全文
posted @ 2020-03-29 20:49 Sundance8866 阅读(158) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/linhaifeng/articles/5984922.html 补充:一行代码过长,需要断开为两行时使用: ‘\' + Enter 一 文件操作 一 介绍 计算机系统分为:计算机硬件,操作系统,应用程序三部分。 我们用python或其他语言编写的应用 阅读全文
posted @ 2020-03-24 20:34 Sundance8866 阅读(795) 评论(0) 推荐(0) 编辑
摘要: 打开程序 在工作中,每次开机会流程化的打开很多软件,比如:sublime text、notepad++(总觉得用notepad看txt文件比较顺眼)、spyder、微信、qq……,手动挨个点太麻烦,设置为开机启动的话又太慢(由于装了Oracle,开机已经很慢了)。 后来了解到可以用bat文件来封装这 阅读全文
posted @ 2020-03-24 18:24 Sundance8866 阅读(2516) 评论(0) 推荐(0) 编辑
摘要: 九 匿名函数 匿名函数就是不需要显式的指定函数 #这段代码 def calc(n): return n**n print(calc(10)) #换成匿名函数 calc = lambda n:n**n print(calc(10)) 你也许会说,用上这个东西没感觉有毛方便呀, 。。。。呵呵,如果是这么 阅读全文
posted @ 2020-03-22 14:17 Sundance8866 阅读(203) 评论(0) 推荐(0) 编辑