码迷,mamicode.com
首页 >  
搜索关键字:print spooler    ( 43561个结果
通用内置函数
# 通用内置函数 ## pow() ### 求次幂 a1 = pow(2,3) #等同与2**3 print(a1) 结果:8 ## ord() ### 字符转换位数字 print(ord("a")) #对照ascll码 结果:97 ## chr() ### 将数字转换成unicode格式的字符,可 ...
分类:其他好文   时间:2021-04-13 12:31:01    阅读次数:0
浙大版《C语言程序设计(第3版)》题目集与解答---函数题(不断更新中)
函数题 /*练习5-1 求m到n之和 (10 分) 本题要求实现一个计算m~n(m<n)之间所有整数的和的简单函数。 函数接口定义: int sum( int m, int n ); 其中m和n是用户传入的参数,保证有m<n。函数返回的是m~n之间所有整数的和。 裁判测试程序样例: #include ...
分类:编程语言   时间:2021-04-13 12:28:09    阅读次数:0
常用语句
# 常用语句 ## 条件语句 ### if.....else.... while True: x = int(input("请输入数字:50")) if x >50: print("你输入的数大于50") else: print("你输入的值小于50") ### if....elif....else ...
分类:其他好文   时间:2021-04-13 12:27:47    阅读次数:0
go面向对象3
类型断言 .(type) 来实现 其中 type 对应的就是要断言的类型 接口类型断言 var num1 Number = 1 var num2 Number2 = &num1 if num3,ok := num2.(Number1);ok { fmt.Println(num3.Equal(1)) ...
分类:其他好文   时间:2021-04-13 12:19:31    阅读次数:0
c语言入门教程–-5判断语句
#include<stdio.h> int main() { int a=1; int b=1; if(a==b) { printf("相等"); } else { printf("不相等"); } return 0; } ...
分类:编程语言   时间:2021-04-13 12:15:37    阅读次数:0
Full Binary Tree
题目来源 Full Binary Tree Description In computer science,a binary tree is a tree data structure in which each node has at most two children. Consider an ...
分类:其他好文   时间:2021-04-13 12:02:15    阅读次数:0
【IO异步】异步理解与使用
# async函数创建与运行 async def funcC(): print("A方法需要等待C方法执行完毕") time.sleep(5) print("C方法完毕") # 如果在执行A里面想异步执行其他任务,就异步执行其他任务 asyncio.run(funcC()) async def fu ...
分类:其他好文   时间:2021-04-13 11:43:28    阅读次数:0
Python使用sql语句对mysql数据库多条件模糊查询
1 def find_worldByName(c_name,continent): 2 print(c_name) 3 print(continent) 4 sql = " SELECT * FROM world WHERE 1=1 " 5 if(c_name!=None): 6 sql=sql+" ...
分类:数据库   时间:2021-04-12 12:45:06    阅读次数:0
Codeforces Round #713 (Div. 3) 题解
本场链接:Codeforces Round #713 (Div. 3) A. Spy Detected! #include <bits/stdc++.h> using namespace std; typedef long long ll; #define forn(i,x,n) for(int i ...
分类:其他好文   时间:2021-04-12 12:42:16    阅读次数:0
对变量第三位进行四舍五入保留两位小数
1 #include<stdio.h> 2 int main() 3 { 4 float num; 5 int temp; 6 scanf("%f",&num); 7 temp=num*100+0.5; 8 num=(double)temp/100; 9 printf("%f",num); //不同 ...
分类:其他好文   时间:2021-04-12 12:28:11    阅读次数:0
43561条   上一页 1 ... 34 35 36 37 38 ... 4357 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!