java
public class Test {
public static void main(String[] args) {
System.out.println("hello world");
}
}
yml
foo:
en: hello world!
zh: 你好世界!
conf
foo.en=hello world!
foo.zh=你好世界!
json
[
{
"lang": "en-us",
"value": "hello world!"
},
{
"lang": "zh-cn",
"value": "你好世界!"
}
]
xml
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>Don't forget the meeting!</body>
</note>
vue
<template>
<h3>{{ message }}</h3>
</template>
<script>
export default {
data: () => ({
message: 'hello world!',
}),
}
</script>
html
<html>
<head>
<meta charset="utf-8" />
<title>Hello World!</title>
</head>
<body>
Hello World!
</body>
</html>
js
window.onload = function () {
let to = 'world'
console.log(`hello ${to}`)
}
css
body {
--bg-color: lightblue;
background-color: var(--bg-color);
}
bash
echo 'hello world!'
diff
+ 人闲桂花落,
- 夜静春山空。
! 月出惊山鸟,
# 时鸣春涧中。
py
print('Hello World!')
go
package main
import "fmt"
func main() {
fmt.Printf("Hello World!\n God Bless You!");
}
ruby
puts "Hello world!"
c
int main(void)
{
printf("\nhello world!");
return 0;
}
php
echo "hello world!";