Python's Hello,world

Python's Hello,world_第1张图片

[----图 - 1----]

图1为跟踪 print("Hello,world!") 语句执行的某堆栈调用片段,此刻,终端刚好输出“Hello,world!”。
Python's Hello,world_第2张图片

[----图 - 2----]

图2是对图1时刻更详细的说明,表明此时调用的是 fileio_write函数。

跟到fileio_write函数中去看,就会发现最终的输出语句是:
        n = write(self->fd, pbuf.buf, (int)len);


JasonLee     2011.09.02     20:52


你可能感兴趣的:(Python's Hello,world)