python中允许在函数内定义另一个函数,这种函数称为内嵌函数或者内部函数。 1、 >>> def a(): ## 外层函数 print("hello world!") def b(): ## 内层函数 print("xxxxxxx!") return b() >>> a() hello world ...
分类:
编程语言 时间:
2021-03-06 14:22:06
阅读次数:
0
前言 最近工作中,需要将查询的一段时间的数据可视化,并导出为word格式。由于对word操作不熟悉,查阅了一下相关文档,这里简要记录一下如何使用python操作word。 说明 本代码来源于官方文档(https://python-docx.readthedocs.io/en/latest/),这里对 ...
分类:
编程语言 时间:
2021-03-06 14:15:46
阅读次数:
0
3编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,world!"); } } 4编译javac java 文件,会生成一个class文件 5运行class文件,java ...
分类:
其他好文 时间:
2021-03-04 13:10:22
阅读次数:
0
Hello,World! 建一个文件夹,存放代码 新建Java文件 文件后缀名为.java helloworld.java 编写代码 public class helloworld{ public static void main (String[] args){ System.out.print( ...
分类:
其他好文 时间:
2021-03-03 12:16:27
阅读次数:
0
Security and Cryptography in Python - Hash Functions(3) How password are Verified https://docs.python.org/3/library/hashlib.html https://en.wikipedia. ...
分类:
编程语言 时间:
2021-03-03 12:13:31
阅读次数:
0
router.beforeEach((to, from, next) => {/* 路由发生变化修改页面title */if (to.meta.title) {document.title = to.meta.title}if(to.meta.content){let head = document ...
分类:
其他好文 时间:
2021-03-03 12:05:46
阅读次数:
0
Markdown学习 标题: #+空格+标题名(二级标题用两个#,三级标题用三个,最多六级) 字体 hello,world!(两边加**变粗体) hello,world!(两边加*变斜体) hello,world!(两边加***斜体加粗) hello,world!(两边加~~) hello,worl ...
分类:
其他好文 时间:
2021-03-03 11:54:33
阅读次数:
0
C# NPOI Word 环境准备 Nuget安装 NPOI NPOI.HWPF【读取doc文件,docx无法读取】 引用 using NPOI.HWPF; using NPOI.HWPF.Extractor; 读取word文件 static void NPOIReadWord() { string ...
python调包——hashlib加密 #加密 md5 sha1 sha256 sha512 import hashlib msg ="hello world" md5 = hashlib.md5(msg.encode('utf-8'))#之所以选择用utf-8对msg进行编码,是因为考虑到了msg ...
分类:
编程语言 时间:
2021-03-02 12:27:58
阅读次数:
0
## 四、计算机基础知识 ### 4.1 计算机 * 电脑 ### 4.2 硬件 * 电脑中的电子元件组成的硬件 ### 4.3 软件 * 数据和指令的集合* 按照一定的顺序执行,完成指定的功能 ### 4.4 系统软件 * 操作系统 * Windows * MacOS * Linux * Andr ...
分类:
编程语言 时间:
2021-03-02 11:56:30
阅读次数:
0