hello, world

来源:互联网 发布:少年班人物原型知乎 编辑:程序博客网 时间:2024/06/05 11:54

世界上最标准的hello world

出于1972年贝尔实验室成员Brian Kernighan撰写的内部技术文件《Introduction to the Language B》之中。这句话全程无大写,先是一个hello和一个逗点,再加上一个空格和world  没有句号

Python 2.x 版本:

print 'hello, world'
Py3.x 版本:
print ('hello world')
Python3之后的版本将print编程了函数,故加 () .


C语言版本:

#include<stdio.h>int main(){    printf("hello, world");    return 0;}

0 0
原创粉丝点击