php - 如何用各种编程语言书写hello world
黄舟
黄舟 2017-04-10 13:11:32
0
34
3745

我先来个php的

<?php
echo 'hello world';
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

모든 응답(34)
洪涛

C-INTERCAL

PLEASE DO ,1 <- #13
DO ,1 SUB #1 <- #238
DO ,1 SUB #2 <- #112
DO ,1 SUB #3 <- #112
DO ,1 SUB #4 <- #0
DO ,1 SUB #5 <- #64
DO ,1 SUB #6 <- #238
DO ,1 SUB #7 <- #26
DO ,1 SUB #8 <- #248
PLEASE DO ,1 SUB #9 <- #168
DO ,1 SUB #10 <- #24
DO ,1 SUB #11 <- #16
DO ,1 SUB #12 <- #158
DO ,1 SUB #13 <- #52

PLEASE READ OUT ,1
PLEASE GIVE UP
大家讲道理

GO Language

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");

Peter_Zhu

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....

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿