摘要: 三体下载将下载的文件重命名为santi.txt,放在文件的目录下#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 1 18:31:11 2018@author: luoga... 阅读全文
posted @ 2018-08-01 18:44 luoganttcc 阅读(2108) 评论(0) 推荐(0) 编辑
摘要: 三体链接下载三体文件,将其从命名为santi.txt 将其放在程序的统一目录下#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 1 10:13:28 2018@author... 阅读全文
posted @ 2018-08-01 15:34 luoganttcc 阅读(210) 评论(0) 推荐(0) 编辑
摘要: f=open("foo.txt")for line in f: print (line)f = open("data.txt","r") #设置文件对象st= f.read() #将txt文件的所有内容读入到字符串str中f.close()... 阅读全文
posted @ 2018-08-01 15:05 luoganttcc 阅读(124) 评论(0) 推荐(0) 编辑