如何用各种编程语言书写hello world
我先来个php的
<?php echo 'hello world';
这个问题已被关闭,原因:
回复内容:
我先来个php的
<?php echo 'hello world';
来个css的
*:before, *:after { content:'hello word' }
Fortran:
-------------------------------------------------
program main write (unit = *, fmt = * ) "hello, world!" stop end program main
=================================================
传中的BrainFuck:
-------------------------------------------------
++++++++++[> +++++++> ++++++++++> +++ ++.> +.+++++++ ..+++.> ++. .+++.------.--------.> +.
Ruby:
puts "Hello World"
来个 python 的
#!/usr/bin/env python print("hello world")
我来个lua的
-- hello world from lua io.write("Hello world")
我来个java的
public class HelloWord { public static void main(String[] args) { System.out.println("hello world"); } }
我来个haskell版本的
module Main where main :: IO () main = putStrLn "Hello, World!"
shell 也算语言吧?
printf "Hello world"
来个AS的,现问的人 -。-
trace("Hello world")
各位大神都不写C的啊。。那我献丑了-。-
#include <stdio.h> int main() { printf("Hello, world!"); return 0; }</stdio.h>
LISP:
(DEFUN HELLO() "HELLO WORLD" )
Small Talk:
Transcript show: 'Hello, world!'.
Javascript:
document.write("Hello, world!");
Erlang:
io:format("Hello, world~n").
Perl:
print "Hello, World.\n";
我接触的第一门语言 Pascal:
program Bonjour; begin writeln('Bonjour le monde'); end.
ASP:
Bash:
#!/bin/bash echo 'Hello World!'
Prolog:
write('Hello World!'), nl.
BASIC:
PRINT "Hello World"
SQL算吗
SELECT "Hello World!"
来个全部的
https://github.com/leachim6/hello-wor...
来个古董级的, Batch
@echo hello world! @echo off pause
C-INTERCAL
PLEASE DO ,1 <p class="answer fmt" data-id="1020000000096050"> </p><p>GO Language</p><pre class="brush:php;toolbar:false">package main import "fmt" func main() { fmt.Println("Hello World!") }
GAS
.section .data str: .ascii "Hello World!" .section .text .global _start _start: movl $4, %eax movl $1, %ebx movl $str, %ecx movl $12, %edx int $0x80 movl $1, %eax movl $0, %ebx int $0x80
Apple Script
display dialog "hello world"
继续古董级, shell
echo Hello world!
...C#要么
using System; public class HelloWorld { public static void Main() { Console.WriteLine("Hello World!"); } }
SCALA
object HelloWorld extends Application { println("Hello World") }
嘿嘿,我加一个dos bat的吧
echo hello world!
我来个AutoIt 3的代码好了
MsgBox(0, "Dialog", "Hello World!")
写了n年的objc
Objective c
NSLog(@"Hello,World");
13种最为荒谬的编程语言
http://sd.csdn.net/a/20110411/295610....
Lolcode
“Hello World” example:
HAI
CAN HAS STDIO?
VISIBLE “HAI WORLD!”
KTHXBYE
Befunge
“Hello World” example:
"dlroW olleH">:v
^,_@
Brainfuck
“Hello World” example:
++++++++++[>+++++++>++++++++++>+++>+++.>+.+++++++
..+++.>++..+++.------.--------.>+.>.
还有更多恶搞语言的写法,简直变态
http://sd.csdn.net/a/20110411/295610....
Matlab:
disp('Hello, World!')
hello word
php的。
Scheme
(display "Hello World")
System.out.println("Hello World");

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
