摘要
第一篇文章,就用本人所学过的语言问候一下世界吧!
代码
python
print('Hello, World !')
c
#include <stdio.h>
int main()
{
printf("Hello, World !");
}
fortran
program main
implicit none
write(*, *) "Hello, World !"
end program main
javascript
console.log("Hello, World !");
java
import java.io.*;
public class Hello {
public static void main(STring[] args){
System.out.println("Hello, World !");
}
}
php
<?php
echo "Hello, World !";
?>
html
<html>
<head>
<meta charset="utf-8">
<title>Hello, World !</title>
</head>
<body>
<h1>Hello, World !</h1>
</body>
</html>
关于作者
- Email: huipan.hnu@qq.com
- Links: GitHub
网友评论