码迷,mamicode.com
首页 >  
搜索关键字:tell    ( 578个结果
notes
>>> a=23414>>> a += 123>>> a23537## >>> prompt = "If you tell us who you are, we can personalize the messages you see.">>> prompt += "\nWhat is your f ...
分类:其他好文   时间:2018-04-02 23:51:10    阅读次数:218
Python基础 (下)
一、读写文件 1. 打开文件: open(filename, mode)。 mode有如下几种模式,默认为只读(r)。 2. 写入文件 3. 读取文件 4. 移动文件位置 f.tell() 返回文件对象当前所处的位置, 它是从文件开头开始算起的字节数。 f.seek() 改变文件当前的位置, 语法: ...
分类:编程语言   时间:2018-03-27 14:31:22    阅读次数:150
Pop Sequence
Pop Sequence Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell ...
分类:其他好文   时间:2018-03-22 01:35:12    阅读次数:145
java 支持json单引号解析
I am trying to do this [see below], and it is throwing error. Exception: Solution: It's not valid JSON, but you can tell Jackson to allow it. Here's h ...
分类:编程语言   时间:2018-03-11 19:29:20    阅读次数:1043
[HTML5] Text Alternatives
Most of times, we need 'alt' to the images, so it can tell the screen reader what is this image about. But sometimes, we can leave alt="", make alt to ...
分类:Web程序   时间:2018-03-11 12:05:03    阅读次数:179
1036. Boys vs Girls (25)
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students. Inp ...
分类:其他好文   时间:2018-03-09 14:08:24    阅读次数:155
781. Rabbits in Forest
In a forest, each rabbit has some color. Some subset of rabbits (possibly all of them) tell you how many other rabbits have the same color as them. Th ...
分类:其他好文   时间:2018-03-02 22:06:09    阅读次数:221
git *** Please tell me who you are.错误
GIT 中提示 please tell me who you are 如果使用git过程中出现了,please tell me who you are ,需要设置一下使用者的身份。 1.git config user.name "username" 2.git config user.email " ...
分类:其他好文   时间:2018-02-23 19:02:13    阅读次数:166
寒假笔记总结
变量.tell()和变量.seek()的用法:a=open(‘f_file‘)读的方式打开文件a.tell()查看光标在文件里的位置0a.readline()读一行‘thisis0line\n‘a.tell()查看光标在文件里的位置(字母一个位置)15a.readline()读一行‘thisis1line\n‘a.tell()查看光标在文件里的位置3
分类:其他好文   时间:2018-02-21 14:32:22    阅读次数:207
4.2Python文件基本操作2:tell、seek
文件基本操作2:tell、seek遍历方法之一:迭代器Readlines方法缺点:readlines是把文件变成列表形式存入内存里面,如果文件很大,一下子全部变成列表,系统负担太重,所以readlines不常使用。#-*-coding:utf-8-*-__author__=‘xiaojiaxin‘__file_name__=‘file3‘#Readlines方法缺点:readlines是把文件变成
分类:编程语言   时间:2018-02-08 16:31:09    阅读次数:190
578条   上一页 1 ... 18 19 20 21 22 ... 58 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!