=============================== RESTART: Shell ===============================
>>> import os
>>> os.getcwd()
'C:\\Windows\\System32'
>>> os.chdir('C:/Users/eric/Documents/Python')
>>> os.getcwd()
'C:\\Users\\eric\\Documents\\Python'
>>> data = open ('sketch.txt')
>>> print (data.readline(),end='')
Man: Is this the right room for an argument?
>>> print (data.readline(),end='')
Other Man: I've told you once.
>>> data.seek(0)
0
>>> for each_line in data:
print(each_line, end='') Man: Is this the right room for an argument?
Other Man: I've told you once.
Man: No you haven't!
Other Man: Yes I have.
Man: When?
Other Man: Just now.
Man: No you didn't!
Other Man: Yes I did!
Man: You didn't!
Other Man: I'm telling you, I did!
Man: You did not!
Other Man: Oh I'm sorry, is this a five minute argument, or the full half hour?
Man: Ah! (taking out his wallet and paying) Just the five minutes.
Other Man: Just the five minutes. Thank you.
Other Man: Anyway, I did.
Man: You most certainly did not!
Other Man: Now let's get one thing quite clear: I most definitely told you!
Man: Oh no you didn't!
Other Man: Oh yes I did!
Man: Oh no you didn't!
Other Man: Oh yes I did!
Man: Oh look, this isn't an argument!
(pause)
Other Man: Yes it is!
Man: No it isn't!
(pause)
Man: It's just contradiction!
Other Man: No it isn't!
Man: It IS!
Other Man: It is NOT!
Man: You just contradicted me!
Other Man: No I didn't!
Man: You DID!
Other Man: No no no!
Man: You did just then!
Other Man: Nonsense!
Man: (exasperated) Oh, this is futile!!
(pause)
Other Man: No it isn't!
Man: Yes it is!
>>> data.close()
>>>

最新文章

  1. django ftp 研究
  2. Struts2中的Ognl
  3. IOS-UIDynamic
  4. MySQL5.5绿色版1067
  5. 如何解决WebService参数传递中文乱码问题
  6. UEdit初始化加载内容偶尔失败,解决
  7. PLSQL_PLSQL中DML/DDL/DCL的概念和区分(概念)
  8. 对话Facebook人工智能实验室主任、深度学习专家Yann LeCun
  9. JUC.Condition学习
  10. zend framework框架学习走起——从零开始,点击记录-安装
  11. boost第 4 章 事件处理
  12. Linux用过的命令集合
  13. MySQL 连接不上本地数据库
  14. Promise的简单用法
  15. Failed to start LSB: Bring up/down networking.
  16. MyEclipse WebSphere开发教程:安装和更新WebSphere 6.1, JAX-WS, EJB 3.0(一)
  17. 转:CMake安装和使用
  18. Logstash5.3借助临时字段修改@timestamp为北京时间,方便按天生成output文件
  19. C++很“虚”
  20. 单线程的redis为什么吞吐量可以这么大

热门文章

  1. webform(九)——JQuery基础(选择器、事件、DOM操作)
  2. [小北De编程手记] : Lesson 03 玩转 xUnit.Net 之 Fixture(上)
  3. AutoMapper在ABP框架中的使用说明
  4. Teradata 语句简单优化
  5. python-dev无法安装
  6. Codeforces Round #380 (Div. 2, Rated, Based on Technocup 2017 - Elimination Round 2) E. Subordinates 贪心
  7. ABAP版连连看
  8. iOS开发——语法OC篇&Block回顾
  9. PHP网页的工作原理
  10. sqlserver2012评估期已过问题处理
  11. 每个国家对应的语言Locale和国家代码对照表
  12. Who do you want to be bad? (谁会是坏人?)人工智能机器小爱的问话
  13. PS滤镜制作下雨照片特效
  14. 代码学习-Linux内核网卡收包过程(NAPI)【转】
  15. Deal with Warning: mysqli::__construct(): (HY000/2002)
  16. Mybatis下collections使用pageHelper进行分页
  17. 每日踩坑 2019-04-08 VS2015未能找到路径“…\bin\roslyn\csc.exe”的解决方案
  18. 零基础Python爬虫实现(爬取最新电影排行)
  19. LG1861 星之器
  20. 阿里云运维部署工具AppDeploy详细教程