Hello World 的方法
Published:
by .python
print('hello world')
C# (winform)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace helloworld
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Button1_Click(object sender, EventArgs e)
{
label1.Text = "Hello,world!!";
}
}
}
C
#include <stdio.h>
main () {
printf("hello world!");
}
C++
#include <iorstream>
using namespace std;
int main () {
cout<<"Hello world!!;
}
HTML
<html>
<head>
<title>HTML</title>
</head>
<body>
<h1> Hello World!!</h1>
</body>
</html>
JAVA
public class hello {
public static void main(String[] args) {
System.out.println("Hello! World!");
}
}
PHP<?php
echo 'hello,world!!';
?>
jsp
<html> <head> <title>My jsp Project</title> </head> <body> hello jsp... <% out.print("hello world"); %> </body> </html>