码迷,mamicode.com
首页 >  
搜索关键字:no write has been do    ( 38312个结果
Python 文件的输入与输出
1. 文本文件的读写主要通过open()所构建的文件对象来实现。我们打开一个文件,并使用一个对象来表示该文件 , f = open(d,r) 其中d是文件名,r是模式 "r" 文件只读,使用 f.write()会报错 "w" 用于写入,每次使用f.write()都会把上一次给覆盖掉 "r+" ...
分类:编程语言   时间:2014-05-10 05:25:47    阅读次数:305
史上最简单的带流控功能的http server
import time import SimpleHTTPServer import SocketServer BYTES_PER_SECOND=160*1024 class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): """Serve a GET re...
分类:其他好文   时间:2014-05-10 03:36:34    阅读次数:276
C语言之关键字
1. C99标准规定了如下关键字:auto _Bool break case char _Complexconst continue default restrict do ...
分类:编程语言   时间:2014-05-10 02:27:27    阅读次数:422
HDOJ 1317 XYZZY
spfa找正环 XYZZY Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2344    Accepted Submission(s): 589 Problem Description It has r...
分类:其他好文   时间:2014-05-09 22:57:45    阅读次数:360
HDU2430-Beans
Mr. Pote's shop sells beans now. He has N bags of beans in his warehouse, and he has numbered them with 1, 2, …, N according to their expired dates. The i-th bag contains Wi units of beans. For sellin...
分类:其他好文   时间:2014-05-09 22:41:06    阅读次数:503
C语言实现状态设计模式
#include #include #include #ifndef VIRTUAL #define VIRTUAL #endif #ifndef DELETE #define DELETE(X) do { free(X);X = NULL; } while(0) #endif #define NEW(TYPE,pInstance,SUBTYPE) struct TYPE* pInst...
分类:编程语言   时间:2014-05-09 22:29:48    阅读次数:455
分行模块,自动识别英文和型号数[推荐精华]
Function cuttextlen(intext, lens) If Len(intext) cuttextlen = intext Else tmptext = intext GetTexts = "" Do While Not Len(tmptext) GetTexts = GetTexts + Left(tmptext, lens) tmptext = Right...
分类:其他好文   时间:2014-05-09 22:22:08    阅读次数:320
在ASP.NET使用javascript的一点小技巧
在ASP.NET使用javascript的一点小技巧 我们在进行ASP.NET开发时,经常会用到一些javascript脚本,比如:  private void Button1_Click(object sender, System.EventArgs e)  {  Response.Write( "alert('OK');") ;  } 经常是重复的书写这些脚本,如果我们能做成一个相...
分类:编程语言   时间:2014-05-09 21:12:11    阅读次数:268
Lua 常用库函数
一、数学库 1. 随机数 math.randomseed(os.time());   -- 设置随机种子    for i=1, 100 do     print(math.random(-1000,1000));   -- 随机区间 [-1000,1000], math.random(1000) 表示 [1,1000] end; 2. 最大,最小值 math.max...
分类:其他好文   时间:2014-05-09 20:58:11    阅读次数:669
c#中常用的js语句
1.document.write(""); 输出语句 2.JS中的注释为// 3.传统的HTML文档顺序是:document->html->(head,body) 4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,documen...
分类:Web程序   时间:2014-05-09 19:40:08    阅读次数:470
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!