- 博客(2)
- 收藏
- 关注
原创 一道题目引发的关于c++命名域的问题--Avoid hiding inheried names
那天在一问一答上碰到一道题: 下面程序的输出? #include using namespace std; static int x = 1; static int y = 2; struct A { static int x; static int y; }; int A::x = 3; int A::y = x; int main(void) { cout <<
2013-06-28 21:47:11 721
原创 Python 中File I/O 和一些常用的方法
version:Python 3.3.2 Python用open()返回一个文件,最常用的open函数是open(filename , mode) 其中,mode包括有"w"(write), “r”(read) , “a”(open the file for appending), 当然也可以用“wt”表示写入text,“rt”表示读取text; file.readline()可以一次读取文
2013-06-24 15:57:55 4014
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人