码迷,mamicode.com
首页 >  
搜索关键字:open    ( 24465个结果
5、文件处理
用来处理系统中的文件内容什么情况下需要处理文件?§读取配置文件§读取数据信息§分析处理日志文件§存入数据到文件打开文件打开文件方式一:open('filename', ['mode'])打开文件方式二:file ('filename',['mode'])mode: a : append w: w.....
分类:其他好文   时间:2014-10-07 20:17:33    阅读次数:191
简单记录一次ORA-00600: internal error code, arguments: [2662]
接上一个,REDO报错搞定后OPEN数据库时又报错ORA-00600: internal error code, arguments: [2662]。原因是_ALLOW_RESETLOGS_CORRUPTION后resetlogs打开数据库,我们可能会因为SCN不一致而遭遇到ORA-00600 26...
分类:其他好文   时间:2014-10-07 19:26:53    阅读次数:147
沪深股市关注度
Sub 沪深股市关注度() On Error Resume Next Cells.Clear Columns("A:A").NumberFormatLocal = "@" Cells(1, 1) = "代码" Cells(1, 2) = "名称" Cells(1, 3) = "关注该股人数(人)" With CreateObject("WinHttp.WinHttpRequest.5.1") .Open "GET", "http://d...
分类:其他好文   时间:2014-10-07 13:34:53    阅读次数:116
Fix to "Error Value: Error: rpmdb open failed"
"An internal system error has occuredA problem that we were not expecting has occured.Please report this bug in your distribution bugtracker withthe e...
分类:数据库   时间:2014-10-07 00:51:22    阅读次数:325
用Python实现登录接口,允许尝试三次
项目需求描述:要求用户输入用户名和密码,认证成功后显示欢迎信息,如果连续输错三次则锁定用户名。逻辑流程图:实现代码:#!/usr/bin/envpython importsys account_file=‘account.txt‘ lock_file=‘lock.txt‘ #putaccountsinalist fh_account=open(account_file) account_li..
分类:编程语言   时间:2014-10-07 00:51:11    阅读次数:508
跳到新窗口
---恢复内容开始---前几天一直很迷茫,想让一个搜索出来的结果跳到新的页面,使用了一下window.open居然不管用,于是开始百度,接着是按照百度的方法一个个试,发现每个方法都不行,于是就把这个问题给搁置了。闲来无事就想把问题解决了,于是又搜了一下,发现仅仅是一个属性,就搞定了,就是给form添...
分类:其他好文   时间:2014-10-06 20:04:50    阅读次数:141
adodb.RecordSet的属性和方法
为了更精确地跟踪数据,要用RecordSet组件创建包括数据的游标,游标就是储存在内存中的数据: rs = Server.CreateObject("ADODB.RecordSet") rs.Open(sqlStr,conn,1,A) 注:A=1表示读取数据;A=3表示新增、改动或删除数据。 ...
分类:数据库   时间:2014-10-06 18:41:10    阅读次数:203
写个端口扫描器及各种尝试
端口扫描器原理很简单,无非就是操作socket,能connect就认定这个端口开放着。 import socket def scan(port): s = socket.socket() if s.connect_ex(('localhost', port)) == 0: print port, 'open' s.close() if __name__ =...
分类:其他好文   时间:2014-10-06 17:17:30    阅读次数:234
Using Open File Dialog in WPF
1 // Create OpenFileDialog 2 Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog(); 3 4 // S...
分类:其他好文   时间:2014-10-06 16:19:10    阅读次数:149
Lua2.4 打开文件 inout.c
这里根据 luac.c 里的函数调用顺序,依次展开相关的代码。首先要看的就是 lua_openfile,该函数定义于 inout.c 中: /* **?Function?to?open?a?file?to?be?input?unit. **?Return?the?file. */ FILE...
分类:其他好文   时间:2014-10-05 18:37:28    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!