码迷,mamicode.com
首页 >  
搜索关键字:read case while    ( 57414个结果
python(二)内置类型
最重要的内置类型有数字、序列、映射、类、实例和异常。 真值检测 if和while都可以做真值检测,默认情况下,如果一个对象的__bool__()返回False或者__len__()返回0,那么该对象为假;否则都为真。 因此内置类型为假的情况有: 常量:None和False 任何值为0的数字类型:0, ...
分类:编程语言   时间:2021-02-17 14:02:30    阅读次数:0
【原创】Linux虚拟化KVM-Qemu分析(九)之virtio设备
背景 Read the fucking source code! --By 鲁迅 A picture is worth a thousand words. --By 高尔基 说明: KVM版本:5.9.1 QEMU版本:5.0.0 工具:Source Insight 3.5, Visio 文章同步在 ...
分类:系统相关   时间:2021-02-16 12:27:04    阅读次数:0
[Bash] Create a Bash Script that Accepts Named Options with getopts
Getopts Let’s say you want to allow a user to pass a -v flag to turn on verbose logging in a script. Manually parsing out options passed to a script i ...
分类:其他好文   时间:2021-02-16 12:03:18    阅读次数:0
linux文件IO
1.open/close 函数原型: int open(const char *pathname,int flags); int open(const char *pathname,int flags,mode_t mode); 参数: pathname:文件名 flags: 必选项:O_RDONL ...
分类:系统相关   时间:2021-02-16 12:02:12    阅读次数:0
1010 一元多项式求导 (25 分)
如果求导之后没有任何非零项,需要输出0 0。 int main() { string line; getline(cin,line); stringstream ss(line); int a,b; bool first=true; while(ss>>a>>b) { a*=b; b--; if(b ...
分类:其他好文   时间:2021-02-16 11:53:11    阅读次数:0
[Bash] Read and Use JSON in Bash with jq
jq Bash, unfortunately, doesn’t ship with a command that can work with JSON natively. In this lesson, we’ll learn how to read and do basic queries on ...
分类:Web程序   时间:2021-02-15 12:41:34    阅读次数:0
0242. Valid Anagram (E)
Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:其他好文   时间:2021-02-15 12:41:17    阅读次数:0
Vue2.x Class & Style Bindings
Intoduciton: The way of using '' in html part confused me when I was learning Class&Style Bindings in Vue's official guide.(of course it's also becaus ...
分类:其他好文   时间:2021-02-15 12:40:17    阅读次数:0
剑指 Offer 57. 和为s的两个数字
题意 在一个有序数组里找两个和为s的数字 思路 1??有序,立刻联想到二分查找,我们可以依次遍历数组中的每个数字,然后二分查找另一个数字使得和可以为s。 2??双指针的写法 一开始分别放在最左和最右,对应为最小和最大的数字,记两个指针指向的元素的和为sum 如果sum > target,说明太大,则 ...
分类:其他好文   时间:2021-02-15 12:36:24    阅读次数:0
CF1480 题解
CF1480A Yet Another String Game Problem 给出一个字符串,两人轮流操作,每次操作可以将一个字符改为另外一个字符,当不可以不改动,先手目标是让最终字符串字典序最小,后手目标相反,求最终字符串。 Sol 贪心地模拟即可。 #define in read() int ...
分类:其他好文   时间:2021-02-15 12:23:09    阅读次数:0
57414条   上一页 1 ... 64 65 66 67 68 ... 5742 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!