|
发表于 2020-5-2 11:24:59
|
显示全部楼层
本帖最后由 隔壁繁星吖 于 2020-5-2 11:36 编辑
Erlang
Scala
HTML
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <h1>Hello World</h1>
- </body>
- </html>
复制代码
PHP
- <?php
- namespace Home\Controller;
- use Think\Controller;
- class Demo1Controller extends Controller {
- public function index(){
- echo 'hello world';
- }
- }
复制代码
TypeScript
- function sayHello(person: string) {
- return 'Hello, ' + person;
- }
- let user = 'Xcat Liu';
- console.log(sayHello(user));
复制代码
C:
- #include <stdio.h>
- int main(void)
- {
- printf("Hello, World!\n");
- return 0;
- }
复制代码
SQL
- CREATE TABLE message (text char(15));
- INSERT INTO message (text) VALUES ('Hello, World!');
- SELECT text FROM message;
- DROP TABLE message;
复制代码
Python
Ruby
Java
- class HelloWorld
- {
- public static void main(String[] args)
- {
- System.out.println("Hello, World!");
- }
- }
复制代码
JS
- document.write('Hello, World!');
复制代码
Go
- package main
- import "fmt"
- func main()
- {
- fmt.Println("Hello, World!")
- }
复制代码
不知道有没有错 |
评分
-
查看全部评分
|