代码布道

Java

package net.codeboot;

public class Test {

    public static void main(String[] args) {
        System.out.println("万里向南湘,孤舟入桂阳。");
    }

}

PHP

<?php
echo '万里向南湘,孤舟入桂阳。';
?>

Node.js/Javascript

console.log('万里向南湘,孤舟入桂阳。');


C++

#include <iostream>

using namespace std;

int main()
{
    cout << "万里向南湘,孤舟入桂阳。" << endl;
    return 0;
}

C

#include <stdio.h>
 
int main()
{
    printf("万里向南湘,孤舟入桂阳。\n");
    return 0;
}

C#

using System;

namespace HelloWorldApplication
{
    class HelloWorld
    {
        static void Main(string[] args)
        {
            Console.WriteLine("万里向南湘,孤舟入桂阳。");
        }
    }
}

Go

package main

import "fmt"

func main() {
    fmt.Println("万里向南湘,孤舟入桂阳。")
}

Python

#!/usr/bin/python3
 
print("万里向南湘,孤舟入桂阳。")

Shell

#!/bin/bash

echo '万里向南湘,孤舟入桂阳。';