码迷,mamicode.com
首页 >  
搜索关键字:count and say    ( 19436个结果
提示用户输入 3次以内
a=input('请输入用户名') count=1 while count<3: if a=='我是大聪明': print('输入正确') count=4 else: a=input('请重新输入') count=count+1 if a=='我是脑残': pass else: print('您已经 ...
分类:其他好文   时间:2020-07-02 12:00:02    阅读次数:59
C# --------- 获取时间差
用于监控程序在那个阶段的运行时间较长 for(int i=0;i<=XList.Count -1;i++) { //获取开始时间 DateTime d1 = DateTime.Now; //进行修改操作 idata += _bllGongZiList.SetUptmdGongZiList(XList ...
分类:Windows程序   时间:2020-07-02 00:17:46    阅读次数:68
Go 统计汉子字符
func countHans(s string) int { var count int = 0 for _, v := range s { isHans := unicode.Is( unicode.Han,v) if isHans { count ++ } } return count } ...
分类:其他好文   时间:2020-07-01 22:22:27    阅读次数:51
python之while/if等应用
自动存取款一体机代码: count=0 chance=3 name='zhangsan' passwd='123' while count<3: in_name=input("请输入账户号:") in_passwd=input("请输入账户密码:") if (in_name == name)and( ...
分类:编程语言   时间:2020-07-01 20:41:01    阅读次数:61
MySQL分组查询
分组查询 1、语法 SELECT 分组函数,分组后的字段 FROM 表 [WHERE 筛选条件] GROUP BY 分组的字段 [HAVING 分组后的筛选] 2、分组查询特点及注意事项 1、分组函数做查询条件肯定放在HAVING子句中. 2、和分组函数一同查询的字段最好是作为分组条件的字段. 3、 ...
分类:数据库   时间:2020-07-01 20:29:02    阅读次数:89
JVM类加载
JVM class文件格式 魔法数 CAFE BABE 编译器版本号 Constant count Constant pool access flag this class super class interface count interfaces field count fields metho ...
分类:其他好文   时间:2020-07-01 20:22:12    阅读次数:65
threading多线程模块
threading多线程模块 基本使用 Python中提供了threading模块用来实现线程并发编程,使用方法有两种,一种是将threading模块下的Therad类进行实例化的方式实现,一种是通过继承threading模块下的Therad类并覆写run()方法实现。 实例化Therad类创建子线 ...
分类:编程语言   时间:2020-07-01 12:26:50    阅读次数:55
C#读取excel某列数据
public List ReadeCFGNameFromExcel(string ExcelName) { List ColumnDB = new List(); //创建 Excel对象 Microsoft.Office.Interop.Excel.Application App = new Mi ...
分类:Windows程序   时间:2020-07-01 11:05:33    阅读次数:226
Linq的分页查询
public PageInfo Get(string name, int PageIndex = 1, int PagepSize = 3) { PageInfo pg = new PageInfo(); if (name == null) { name=""; } int count = pg.D ...
分类:其他好文   时间:2020-06-30 20:25:06    阅读次数:48
codewars练习知识总结
1、capitalize() 与 title() 区别 capitalize(): 字符串第一个字母大写 title(): 字符串内的所有单词的首字母大写 a="i say hello to you" print(a.title()) # 'I Say Hello To You' print(a.c ...
分类:其他好文   时间:2020-06-30 20:24:02    阅读次数:50
19436条   上一页 1 ... 65 66 67 68 69 ... 1944 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!