码迷,mamicode.com
首页 >  
搜索关键字:bre    ( 6194个结果
s5_day1作业
#1、使用while循环输出1 2 3 4 5 6 8 9 10 # s=0 # while s<10: # s+=1 # if s==7: # continue # print(s) # for i in range(1,11): # if i==7: # continue # print(i) ... ...
分类:其他好文   时间:2017-06-07 19:42:39    阅读次数:220
s5_day2作业
# 1:编写for循环,利用索引遍历出每一个字符 # msg = 'hello egon 666' # for i in range(len(msg)): # print(i,msg[i]) # 2:编写while循环,利用索引遍历出每一个字符 # msg = 'hello egon 666' # ... ...
分类:其他好文   时间:2017-06-07 19:41:38    阅读次数:158
后台代码调用接口。
/// /// Get Post /// /// /// /// public static string PostMoths(string url, string param) { string strURL = url; ... ...
分类:其他好文   时间:2017-06-07 18:53:46    阅读次数:249
Java(第四章和第五章)
第四章 一、 switch结构(开关语句)的语法 switch(表达式[dream1] ){ case 常量1[dream2] : //语句块1 break[dream3] ; case 常量n[dream4] : //语句块n break; default[dream5] : //语句块 brea ...
分类:编程语言   时间:2017-06-07 12:50:50    阅读次数:125
Java(第六章)
第六章 一、for循环的使用场合 l while循环——先判断,再循环 while(1、条件表达式){ //2、循环操作 //3、更改循环条件表达式 } l do…while——先循环,再判断 do{ //2、循环操作 //3、更改循环条件表达式 }while(1.条件表达式); 以上2种循环,一般 ...
分类:编程语言   时间:2017-06-07 12:32:42    阅读次数:164
[字符串]牛棚回声
题目链接 思考 一开始我还以为是 LCS问题,最后读了读题目。才发现是一道字符串模拟题目,扫一遍前缀和后缀就ok了。 ...
分类:其他好文   时间:2017-06-07 11:19:01    阅读次数:148
css纯数字或字母换行
#div { word-wrap:break-word; word-break:break-all; } ...
分类:Web程序   时间:2017-06-07 09:56:38    阅读次数:233
C# 解压及压缩文件源代码
using System.IO; using System.Windows.Forms; using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.Checksums; public void unZip(string strS ...
分类:Windows程序   时间:2017-06-06 22:17:14    阅读次数:244
选择与循环
1、选择语句(if) ###e.g.1 if xx : statement1 else : statement2 ###e.g.2 if xx : statement1 elif yy: statement2 ...... else : statement3 ###e.g.3 if xx : sta ...
分类:其他好文   时间:2017-06-06 18:43:33    阅读次数:146
链表中环的入口结点
题目 一个链表中包含环,请找出该链表的环的入口结点。 分析 首先检查该链表是否为环,设置一个快指针fast,每次走两步,一个慢指针slow,每次走一步。若fast==null或fast.next==null,表示不存在环;当fast==slow时,存在环。 将fast指向链表头,每次走一步,slow ...
分类:其他好文   时间:2017-06-06 15:58:36    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!