[Python Study Notes] 编程仪式感的Hello World!

   学习还是要有一点仪式感的,学单片机第一步,点个灯;学编程第一步,hello world!

1 C:\Users\Liu>python
2 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
3 Type "help", "copyright", "credits" or "license" for more information.
4 >>> print("hello world")
5 hello world
6 >>>

为了加深仪式感,下面附上各种编程代码的Hello World!

 

C++:

1 #include <iostream>
2 int main(void)
3 {
4 std::cout<<"Hello world";
5 }

C:

1 #include <stdio.h>
2 int main(void)
3 {
4 printf("\nhello world!");
5 return 0;
6 }

 

JAVA:

1 #include <stdio.h>
2 int main(void)
3 {
4 printf("\nhello world!");
5 return 0;
6 }

 

PHP:

1 <?php  
2             echo "hello world!";  
3 ?>  

 

Go:

1 package main
2 
3 import "fmt"
4 
5 func main(){
6 
7     fmt.Printf("Hello World!\n God Bless You!");
8 
9 }

 

 

 

 公司事情比较多,希望自己能够坚持下去,一边学习,一边去总结。

 

posted @ 2017-12-30 22:11  刘六六  阅读(317)  评论(1编辑  收藏  举报