Python 的Hello World!

    技术2025-12-06  2

     

        学习程序的人都是知道世界上最经典的程序就是Hello World了,那么如何用Python打印HelloWorld到Console控制台上显示呢??     __author__="Alex" __date__ ="$2011-2-16 17:31:24$" if __name__ == "__main__": print "Hello"; print ("hello,world!")    Console show:   Hello Hello,world!   是不是很简单呢,print("Hello,World")搞定,对,Python就是这么简单,上面的author啊,date啊都是Netbeans 自己给我生成的,呵呵!

     

    最新回复(0)