码迷,mamicode.com
首页 >  
搜索关键字:print spooler    ( 43561个结果
内置函数_id
id(): 以数字形式查看内存地址 示例代码: s = 'hello' print(id(s)) # 139620916353264 View Code ...
分类:其他好文   时间:2021-04-05 11:55:25    阅读次数:0
内置函数input
input(): 接收用户输入的内容 示例代码: result = input('请输入内容:') print(result) # 用户输入的是什么内容就打印什么内容 ...
分类:其他好文   时间:2021-04-05 11:54:27    阅读次数:0
ps -ef | grep 命令详解
ps 命令的作用是显示进程信息的; | 符号,是个管道符号,表示ps 和 grep 命令同时执行; grep 命令是查找(Global Regular Expression Print),能使用正则表达式搜索文本,然后把匹配的行显示出来; ps命令有一些参数: -e : 显示所有进程 -f : 全格 ...
分类:其他好文   时间:2021-04-02 13:33:41    阅读次数:0
实验二
#include <stdio.h> int main(){ int n,sum,x,y; sum=1; x=1; y=2; scanf("%d",&n); do { sum +=y; y=y*2; x++; }while(x<=n); printf("n=%d时,sum=%d\n",n,sum); ...
分类:其他好文   时间:2021-04-02 13:12:27    阅读次数:0
python中判断变量的类型
python的数据类型有:数字(int)、浮点(float)、字符串(str),列表(list)、元组(tuple)、字典(dict)、集合(set) 一般通过以下方法进行判断: 1、isinstance(参数1,参数2) 描述:该函数用来判断一个变量(参数1)是否是已知的变量类型(参数2) 类似于 ...
分类:编程语言   时间:2021-04-01 13:44:37    阅读次数:0
递归函数 和 匿名函数
递归函数 函数的递归调用: 是函数嵌套调用的一种特殊形式。 具体指的是在调用一个函数的过程中又直接或者间接的调用了自己,称之为函数的递归调用。 函数的递归调用就是一个循环的过程,用函数来实现循环 def f1(): print('from f1') f1() f1() # 函数默认调用1000次 d ...
分类:其他好文   时间:2021-04-01 13:41:29    阅读次数:0
python字典
一、创建字典 字典特点: 符号位大括号 数据为键值对形式 各个键值对之间用逗号隔开 # 1. 有数据的字典 dict1 = {'name': 'Tom', 'age': 20, 'gender': 'male'} print(dict1) # 2. 创建空字典 dict2 = {} print(ty ...
分类:编程语言   时间:2021-04-01 13:38:17    阅读次数:0
double比较大小
BigDecimal data1 = new BigDecimal("1"); BigDecimal data2 = new BigDecimal("0.01"); if (data1.compareTo(data2) < 0) { System.out.println("第二位数大!"); } i ...
分类:其他好文   时间:2021-04-01 13:37:22    阅读次数:0
二分查找
#include <iostream> void print_arrs(const int *, int N); void sort_arrs(int *pInt, int N); constexpr int COUNT = 10; int search_data(const int *pInt, ...
分类:其他好文   时间:2021-03-31 12:20:32    阅读次数:0
RocketMQ(三)——————javaAPI(8.重试机制)
producer: **默认超时时间** /*** Timeout for sending messages.*/private int sendMsgTimeout = 3000; // 异步发送时 重试次数,默认 2 producer.setRetryTimesWhenSendAsyncFail ...
分类:编程语言   时间:2021-03-31 12:15:32    阅读次数:0
43561条   上一页 1 ... 39 40 41 42 43 ... 4357 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!