[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 }

 

 

 

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

 

转载于:https://www.cnblogs.com/liu66blog/p/8151298.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值