All About: File I/O in C++By Ilia Yordanov, loobian@cpp-home.comThis tutorial may not be republished without a written permission from the author!IntroductionThis tutorial will start with the very basis of File I/O (Input/Output) in C++. After that,
本章将覆盖所有在Python中使用的基本I/O功能。有关更多函数,请参考标准Python文档。
打印到屏幕上:
产生输出最简单的方法是使用print语句,可以通过用逗号分隔的零个或多个表达式。该函数将传递到一个字符串表达式,并将结果写到标准输出,如下所示:
#!/usr/bin/python
print "Python is really a great language,", "isn't it?";
这将产生结果输出在标准屏幕上,结果如下:
Python is really a gre