helloworld代码怎么写
1个回答
展开全部
java:
public class helloworld
{
public static void main(String []args)
{
System.out.println("Hello 仔陪world!");
}
}
python2:
print "Hello world!"
python3:
print ("Hello world!")
C/C++:
#include <stdio.h>
int main()
{
printf("Hello world!\n");
return 0;
}
Linux intel asm(由于百度知道不支持汇编语言,因此可读性会差一点):
[section data]
msg db "Hello world!", 0ax
len equ $ - msg
[section text]
global _start
_start:
mov eax, 4
mov ebx, 1
帆滚 mov ecx, msg
mov edx, len
int 0x80
mov eax, 1
mov ebx, 0
int 0x80
Linux AT&T asm(由于百度知道不支持汇编语态戚余言,因此可读性会差一点):
.data
msg:
.ascii "Hello world!\n"
len = . - msg
.text
.globl _start
_start:
movl $4, %eax
movl $1, %ebx
movl $msg, %ecx
movl $len, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80
php:
<?php
echo "Hello world!"
?>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询