码迷,mamicode.com
首页 >  
搜索关键字:do while    ( 38720个结果
tqdm 进度条 python用
tqdm 是一个快速,可扩展的Python进度条 可以在 Python 长循环中添加一个进度提示信息,用户只需要封装任意的迭代器 tqdm(iterator)。 使用pip就可以安装。 ' from tqdm import tqdm for i in tqdm(range(1000)): #do s ...
分类:编程语言   时间:2021-05-23 23:00:33    阅读次数:0
CRISC128V2的调用增强版2021.4免费发布
该版本增强了调用和中断的服务能力,将中断服务入口的间隔由32字节改成64字节,可以更方便地写入口代码。同时更新了汇编与指令的帮助文件的相关内容。 如果你过去在2021版本中付过款,该版本可以不用付款。 if you already pay money for version 2021,you do ...
分类:其他好文   时间:2021-05-20 17:50:28    阅读次数:0
SetWindowSubclass 设置窗口子类回调
今天想给一个 Static 控件添加一个鼠标相关的事件:移入,移出,按下,松开事件 一开始以为在 while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character message ...
分类:Windows程序   时间:2021-05-04 16:13:11    阅读次数:0
层次打印二叉树
#include<vector> #include<queue> #include<string> #include<binaryNode.hpp> #include<iostream> #include<sstream> template<typename T> class traverse { ...
分类:其他好文   时间:2021-05-04 15:34:11    阅读次数:0
shell逐行读取替换
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:系统相关   时间:2021-05-03 12:39:24    阅读次数:0
点亮PICO板载LED灯
一、目标 会PICO引脚的使用 点亮LED 二、上程序 import machine import utime led_onboard = machine.Pin(25, machine.Pin.OUT) while True: led_onboard.value(1) utime.sleep(5) ...
分类:其他好文   时间:2021-05-03 12:32:04    阅读次数:0
韩顺平Java斐波那契查找
代码有一个bug,当数组长度为13的时候,查找数组最后一个数时会报数组角标越界。将代码: //获取到斐波那契分割数值的下标 while (high > f[k] - 1) { k++; } 改成 //获取到斐波那契分割数值的下标 while (high >= f[k] - 1) { k++; } 就 ...
分类:编程语言   时间:2021-04-30 12:34:46    阅读次数:0
实验4 函数和数组应用编程
实验任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n ...
分类:编程语言   时间:2021-04-30 12:31:46    阅读次数:0
实验四
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:其他好文   时间:2021-04-30 12:31:08    阅读次数:0
实验4
#include<stdio.h> void fun(int n); int main(){ int n; long long f; while(scanf("%d", &n)!=EOF){ fun(n); } return 0; } void fun(int n){ int f[505],a[50 ...
分类:其他好文   时间:2021-04-30 12:29:16    阅读次数:0
38720条   上一页 1 ... 17 18 19 20 21 ... 3872 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!