码迷,mamicode.com
首页 >  
搜索关键字:make: command not fo    ( 1841个结果
scala-for高级用法
/*高级for循环*/ //这个叫守卫 for(i <- 1 until 10 if i%3==0){ //修改步长 println(i) } for(i <- 1 until 10; if i%3==0){ //修改步长.其实是有个分号的 println(i) } //写法1:嵌套for循环 fo... ...
分类:其他好文   时间:2017-10-31 00:37:14    阅读次数:295
缺省源
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define inf 2147483647 12 #define Fo... ...
分类:其他好文   时间:2017-10-29 20:19:14    阅读次数:138
linux 使用supervisor来管理进程
现在假设一个脚本是,hello.py,内容是 fo = open('xx.txt','w') while 1: fo.write('hello world') print('hi') time.sleep(1) 如果使用python hello.py那么控制台一直print hi,会干不了其它活,必 ...
分类:系统相关   时间:2017-10-28 21:05:38    阅读次数:265
缺省源
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define inf 2147483647 12 #define Fo... ...
分类:其他好文   时间:2017-10-28 11:25:32    阅读次数:172
Python--装饰器
装饰器的应用场景,较为经典的有插入日志、性能测试、事务处理等。 上代码: 此段代码,如果我们想在不改变原有功能的基础上添加新功能,可以这样做: Python提供了一个语法糖来降低字符输入量。 让我们来关注一下@wrapper的写法,在foo函数定义上加上这一行与另外写foo = wrapper(fo ...
分类:编程语言   时间:2017-10-27 01:41:21    阅读次数:190
变量问题——赋值问题
#include<iostream>#include<iomanip>#include<cmath>using namespace std;char a[100001],b[100001],c[100001];int d[27]={1,1};int n;void cinn(){ cin>>n; fo ...
分类:其他好文   时间:2017-10-26 18:52:25    阅读次数:140
[Leetcode]26. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:其他好文   时间:2017-10-24 22:29:37    阅读次数:154
iTextSharp 简单用法
//字体 private static BaseFont bfChinese = BaseFont.CreateFont(@"C:\Windows\Fonts\simsun.ttc,1", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED); private Fo... ...
分类:其他好文   时间:2017-10-24 18:27:36    阅读次数:201
RC振荡电路
RC振荡电路,由电阻R和电容C构成的适用于产生低频信号的电路 1.原理 简介 RC振荡电路,采用RC选频网络构成,适用于低频振荡,一般用于产生1Hz~1MHz(fo=1/2πRC)的低频信号。对于RC振荡电路来说,增大电阻R即可降低振荡频率,而增大电阻是无需增加成本的;而对于LC振荡电路来说,一般产 ...
分类:其他好文   时间:2017-10-24 17:20:46    阅读次数:116
累加器 和累乘器
1.累加器 累加器本质就是一个变量,用来存储之前加的所有数之和 案例:求1,2,3,4....,100之和 注意事项: 1、累加器必须定义在循环体之外,如果定义在循环体内,每次都相当于重新声明赋值,清空重置。 2、给累加器赋值为0 3、累加过程在for循环结束后才终止,如果想用最后累加值,必须在fo ...
分类:其他好文   时间:2017-10-23 20:43:52    阅读次数:148
1841条   上一页 1 ... 54 55 56 57 58 ... 185 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!