1. 首页
  2. 数据库
  3. 其它
  4. 【文本文件读取】Python

【文本文件读取】Python

上传者: 2020-12-31 00:13:53上传 PDF文件 45.2KB 热度 35次
【文本文件读取】 题目内容:用Windows“记事本”创建一个文本文件(文件名自定义),其中每行包含一段英文。 试读出文件的全部内容,并判断: (1)该文本文件共有多少行? (2)文件中以大写字母T开头的有多少行? (3)一行中包含字符最多的和包含字符最少的分别在第几行? 【输入样例】: 例:记事本内容为: A lot of people today are animal rights advocates. Some of them are very Passionate and even quite radical about the issue. But others argue that
下载地址
用户评论