<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
// 在控制台中,输出内容:
console.log("Hello World");
// 在文档中输出内容:
document.write("Hello World");
// 警告框中弹出内容:
alert("Hello World");
.verticalcenter{
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
}
<?php echo $phpinfo; ?>
#!/usr/bin/ruby
puts "Hello World!";
# 这个程序打印 Hello, world!
print('Hello, world!')
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
#include <stdio.h>
int main()
{
// printf() 中字符串需要引号
printf("Hello, World!");
return 0;
}
using System;
public class program
{
public static void main()
{
Console.WriteLine("Hello,World");
Console.ReadLine();
}↓
}
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}
<!DOCTYPE html>
<html>
<head>
<title>这是个标题</title>
</head>
<body>
<h1>这是一个一个简单的HTML</h1>
<p>Hello World!</p>
</body>
</html>
location ~* \.(htm)$ {
rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last;
}
-- 假设我们有一个员工表 employees
CREATE TABLE employees (
id INT AUTO_INCREMENT,
name VARCHAR(100),
department_id INT,
PRIMARY KEY (id)
);
-- 为department_id字段创建索引
CREATE INDEX idx_department ON employees(department_id);
-- 使用索引进行查询
SELECT * FROM employees WHERE department_id = 5;
最后于 11月前
被admin编辑
,原因: