码迷,mamicode.com
首页 >  
搜索关键字:for while    ( 28479个结果
shell脚本5
https://blog.csdn.net/u013469753/article/details/106688892 1、编写脚本,显示进度条 #!/bin/bash # 编写脚本,显示进度条 myProgress(){ while : do echo -n '#' sleep 0.2 done } ...
分类:系统相关   时间:2020-07-14 00:43:26    阅读次数:91
ccf 201903-2 二十四点 python
# #24点游戏,输入一串数字,在运算符满足的情况下,判断是否答案是否等于24.注意/满足整数输出 # import math # while 1: # n=int(input()) # number= list(map(int,input().split())) # """ # 10 # 9+3+ ...
分类:编程语言   时间:2020-07-13 18:41:41    阅读次数:70
python有关csv文件的记录
1、合并所有测试集和训练集的文件: 使用cmd到所在盘下,输入copy *.CSV all_***.csv即可 2、单独提取异常数据列作为csv文件: import csvimport codecs#coding:utf-8with open("G:\\data_release\\train1.0\ ...
分类:编程语言   时间:2020-07-13 18:39:46    阅读次数:85
Spring多数据源动态切换
原理 DataSource向外提供一个 getConnection() 方法,得getConnection者得数据库 AbstractRoutingDataSource 实现了 getConnection() 方法 // line 166 @Override public Connection ge ...
分类:编程语言   时间:2020-07-13 18:24:15    阅读次数:58
C_时间段计算代码
#include "StdAfx.h" #include<stdio.h> #include<stdlib.h> int main() { int a,b,c,d,e,f,g,h,i; ///////////////////输入起始时间/////////////////////// while(1) ...
分类:其他好文   时间:2020-07-13 18:09:49    阅读次数:33
ccf 201912-1 报数 python
题目描述: 题目描述: n = int(input()) a = [0] * 4 #完成4个人 m = 0 i = 0 while i < (n + m): i += 1 if (i % 7 == 0) or (str(7) in list(str(i))): a[i % 4 - 1] += 1 m ...
分类:编程语言   时间:2020-07-13 18:08:39    阅读次数:52
DAY14 - How to run a company
Passage 14 If you want to run a company well, you should remember that there are four general policies to follow with employees. FIrst, pay them what ...
分类:其他好文   时间:2020-07-13 18:02:55    阅读次数:109
js:初识(相关概念、js代码的书写位置、注释方式、输入输出语句)
1、相关概念 (1)编程语言与标记语言 编程语言:有很强的逻辑和行为能力,如:if else、for、while等具有逻辑性和行为能力的指令,如:c、java、js 标记语言:不用于向计算机发出指令,常用于格式化和链接,标记语言的存在是用来被读取的是被动的,如:html、xml (2)js历史 19 ...
分类:Web程序   时间:2020-07-13 15:14:06    阅读次数:66
c++根据文件路径创建所需的文件夹
string str;//文件路径int pos=str.find_last_of("/"); str=str.substr(0,pos); vector<string > filenames;while(_access(str.c_str(),0) 1){ pos=str.find_last_of ...
分类:编程语言   时间:2020-07-13 13:54:40    阅读次数:94
等差数列求和
等差数列 2,5,8,11,14。。。。 while True: line = input().strip() if not line: break line2 = int(line) num = 2 sumnum = 0 while line2 > 0: sumnum = num + sumnum ...
分类:其他好文   时间:2020-07-13 13:38:55    阅读次数:53
28479条   上一页 1 ... 88 89 90 91 92 ... 2848 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!