#函数 def hello(): #定义函数 print("python 你好!") hello() #调用函数 def add(a,b): #定义函数 return a+b #返回值 add(1,2) add #直接用函数名,可返回函数变量名的内存地址 x = add #将函数名赋值给变量 x(1 ...
分类:
编程语言 时间:
2021-04-08 13:50:11
阅读次数:
0
题目: Given any string of N (≥) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d e l ...
分类:
其他好文 时间:
2021-04-08 13:31:19
阅读次数:
0
在线调试地址: Graphviz Online 用法: dot语法 Linux环境下用法: 参考资料: 1. Linux绘图工具之dot 2. 实验: 首先创建一个dot文件,fllow.dot vi fllow.dot digraph G { hello [shape=box]; world [s ...
分类:
其他好文 时间:
2021-04-08 13:10:42
阅读次数:
0
Markdown学习 标题 三级标题 四级标题 字体 Hello word! Hello word! *Hello word! Hello word! Hello word! 引用 淳无敌 分割线 图片 超链接 点击童无敌 列表 A c d a b c 表格 代码 java ...
分类:
其他好文 时间:
2021-04-07 11:43:53
阅读次数:
0
伪指令不是真正的指令,而是为了方便NASM汇编器而存在,但是它们的地位与真正的指令相同: label: instruction operands ; comment instruction部分就可以是伪指令 Dx和RESx Dx声明初始化的数据: db 0x55 ; just the byte 0x ...
分类:
其他好文 时间:
2021-04-07 10:53:23
阅读次数:
0
markdown学习 标题: // ##空格【标题名】 二级标题,以此类推,几个#就是几级,数字越小字号越大; 字体 举例: Hello world! 被两个*包含,粗体; Hello world! 被一个*包含,斜体; Hello world! 被三个*包含,粗斜体; Hello world! 被 ...
分类:
其他好文 时间:
2021-04-07 10:53:04
阅读次数:
0
1、一类事物有多种形态,比如:动物有多种形态:人、猪、狗,文件有多种形态:文本文件,可执行文件2、不同的对象(形态)接收同一个方法,产生不同的响应 import abc class Animal(metaclass=abc.ABCMeta): # 同一类事物:动物 @abc.abstractmeth ...
分类:
其他好文 时间:
2021-04-07 10:37:08
阅读次数:
0
Spring Boot 和 Spring Cloud 已成为当前最流行的微服务框架。本文通过样例演示如何搭建并运行一个简单的 Spring Boot 项目。 在开发之前,首先确认我们的电脑上已经有以下环境: Java azul-16 maven 3.6.3 IntelliJ IDEA 2020.3 ...
分类:
编程语言 时间:
2021-04-07 10:35:30
阅读次数:
0
scanf输入数据时遇到空格和遇到回车都会结束输入 如果我们想要输入一串字符如:Hello World! scanf("%s",&str); 打印出的结果只会是Hello,因为在Hello之后遇到了空格结束了输入. 那么如何解决这个问题呢? scanf("%[^\n]",str); //读到'\n' ...
分类:
其他好文 时间:
2021-04-07 10:32:20
阅读次数:
0
markdown学习 一、标题 格式:“#+空格” 为一级标题 “##+空格”为二级标题 以此类推直到六级标题 二、字体 1、粗体 hello word 格式:两个*放在想要加粗的字体两边 2.斜体 hello Word 格式:一个*放在想要倾斜的字体两边 3.删除线 Holly Word 格式:两 ...
分类:
编程语言 时间:
2021-04-06 14:34:47
阅读次数:
0