Python Basics (ii)

Source: Internet
Author: User

Hello World Program
print("Hello World!")

Then execute the output:

Hello World!

Execute under Interactive

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32Type "copyright", "credits" or "license()" for more information.>>> print("Hello World!")Hello World!

Compare Hello World in other languages

C++# include <iostream>int main(void){std::cout<<"Hello World!";}
C语言# include <stdio.h> int main(void){printf("\nHello World!");return 0;}
Java语言public class HelloWorld{    //  程序的入口    public static void main(String args[]){        // 向控制台输出信息        System.out.printIn("Hello World!");    }}
PHP<?pjp    echo "Hello World!";?>

Ruby
Puts "Hello world!"

Golang
Package Main

Import "FMT"
Func Main () {
Fmt. Printf ("Hello world!\n God Bless you!")
}
```

Variable \ Character encoding

Python Basics (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.