Coursera课程Python for everyone:chapter7
2016-02-17 11:13
369 查看
Chapter 7 Quiz
10 试题Main Memory
Machine Language
Secondary memory
Motherboard
All the data from the file is read into memory and stored in the handle
The handle has a list of all of the files in a particular folder on the hard drive
The handle contains the first 10 lines of a file
The handle is a connection to the file's data
The list of folders to be searched to find the file we want to open
Whether we want to read data from the file or write data to the file
How large we expect the file to be
What disk drive the file is stored on
file_input()
cin
read()
raw_input()
It enables random movement throughout the file
It indicates the end of one line of text and the beginning of another line of text
It adds a new network connection to retrieve files from the network
It allows us to open more than one files and read them in a synchronized manner
for line in xfile:
while ((line = xfile.readLine()) != null) {
while (<xfile>) {
while line = xfile.gets
Reverse the order of the lines in mbox.txt
Count the lines in the file 'mbox.txt'
Remove the leading and trailing spaces from each line in mbox.txt
Convert the lines in mbox.txt to lower case
strip()
ljust()
find()
startswith()
setjmp / longjmp
try / catch / finally
try / except
signal handlers
Checks to see if the file exists and can be written
Prompts the user for a file name
Reads the entire file into the variable inp as a string
Turns the text in the file into a graphic image like a PNG or JPG
相关文章推荐
- SQL Server 作业批量停止
- SQL2008定时任务作业创建教程
- 作业
- OS的处理机调度层次-01
- Linux系统使用crontab命令实现计划任务
- 初来宝地
- CFG桩施工组织设计
- 求助啊有会做网页的进
- 苦恼~
- 哪位仁兄帮我编译以下程序阿?
- e路通电子传真(实现企业传真无纸化办公)beta版震撼发布
- [Oracle Client and Net Service]Oracle Client安装及Net Service的配置
- 利用OMS自带工具做Oracle增量备份与恢复
- 最美又最遥远的回忆
- 误打误撞进了这里
- 求高人帮忙呀
- 成功的部门经理一周速成(转载)
- 进程的问题
- 我要努力!!!
- 教出一个优秀的女儿