C语言:

#include <stdio.h>

int main() {
    printf("hello world\n");
    return 0;
}

C++:

#include <iostream>

int main() {
    std::cout << "hello world" << std::endl;
    return 0;
}

Java:

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("hello world");
    }
}

Python:

print("hello world")
请分别用CC++JAVAPython写一段输出hello world的代码

原文地址: http://www.cveoy.top/t/topic/eCMa 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录