码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
28.集合1------List
1.List概述和特点 2.List特有方法 3.列表迭代器ListIteraor public static void main(String[] args) { List list = new ArrayList(); list.add("1"); list.add("2"); list.add ...
分类:其他好文   时间:2020-06-07 19:56:14    阅读次数:77
sstrtok函数用法
1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 int main() 7 { 8 string s; 9 getline(cin,s); // 读取一行 10 char *p; // 存储分割完一次分出的 ...
分类:其他好文   时间:2020-06-07 19:23:05    阅读次数:63
十进制转换为其他进制(不使用format)
base = [str(x) for x in range(10)] + [chr(x) for x in range(ord('A'), ord('A') + 6)] # ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C ...
分类:其他好文   时间:2020-06-07 13:15:30    阅读次数:85
[Java]遍历字符串.length(), .charAt()
public class CharAt { public static void main(String[] args) { String ac = "Hello World"; //for (int i = 0; i < ac.length(); i++) int i = 0; //while ( ...
分类:编程语言   时间:2020-06-07 11:07:35    阅读次数:73
Python发送邮件
#实现邮件发送import smtplib#email实现邮件的构建from email.mime.text import MIMETextfrom email.header import Headerimport schedule,timedef job(): # 如何实现文本邮件发送 messa ...
分类:编程语言   时间:2020-06-07 10:55:40    阅读次数:74
java7大非线性时间比较类排序
java7大非线性时间比较排序时间、空间复杂度的比较 一、冒泡排序 一、基本思想 冒泡排序(Bubble Sort),是一种计算机科学领域的较简单的排序算法。 它重复地走访过要排序的元素列,依次比较两个相邻的元素,如果顺序(如从大到小、首字母从Z到A)错误就把他们交换过来。 走访元素的工作是重复地进 ...
分类:编程语言   时间:2020-06-06 21:36:41    阅读次数:78
ironic conductor dd
2020-06-06 16:14:28.562 7858 ERROR ironic.drivers. modules.agent_base_vendor [req-15189857-7e9e-4398- 9f89-6b132586147b - - - - -] Asynchronous except ...
分类:其他好文   时间:2020-06-06 16:57:53    阅读次数:60
hadoop mr 执行完毕,无法查看日志
Failed redirect for xxxxxxxxxxx Failed while trying to construct the redirect url to the log server. Log Server url may not be configured Unknown cont ...
分类:其他好文   时间:2020-06-06 13:18:10    阅读次数:96
HDOJ1521组合数学 指数型母函数计数
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1521 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:其他好文   时间:2020-06-06 13:06:06    阅读次数:56
【模板】【刷题】差分与前缀和_LuoguP5488_多项式
题面 给定长度为$n$的序列$a$,求其$k$阶差分和前缀和。 对1004535809取模。 $1\leq n\leq 105, 1\leq k\leq 10{2333}$ 题解 我们发现可以算原序列中每一位对于最终结果的贡献是多少。 对于差分,我们记原序列中第$i$位上的数,对第$k$次差分之后的 ...
分类:其他好文   时间:2020-06-06 12:48:03    阅读次数:63
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!