首页 > 其他 > 详细

一句话证明你

时间:2018-06-20 13:45:08      阅读:144      评论:0      收藏:0      [点我收藏+]

各种语言的 hello world

Shell

echo "hello world"

 

python 2.6 
print
"hello,world"

 

Python 3.+

print ("hello,world")

 

C++ 

# include <ostream>
int main (void)
{
std::cout<<"hello world";
}

 

C 

# include <stdio.h>
int main (void)
{
printf ("\nhello world!")
return;
}

 

Java
public class helloworld {
// 程序的入口
public static void main (String args[]){
// 向控制台输出信息
System.out.println("hello world!");
}
}

 

Php

<?php
echo "hello world!";
?>

 

Ruby 

puts "hello world."

 

Go

package
import "fmt"
func main(){
fmt.Printf("hello world!\n God Bless You");

}

 

一句话证明你

原文:https://www.cnblogs.com/sharesdk/p/9203152.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!