NULL
博文链接:https://shixm.iteye.com/blog/381884abstract
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple
but effective approach to ohject-oriented programming. Python's elegant syntax a
一、从文件中读取数据
#!/usr/bin/env python
with open('pi') as file_object:
contents = file_object.read()
print(contents)
===================================
3.1415926
5212533
2324255
1、逐行读取
#!/usr/bin/env python
filename = 'pi'
with open(filename) as f