二十种编程语言齐送鼠年祝福

在这新春佳节到来之际,小李在此给大家送上最诚挚的祝福,祝大家都有

二十种编程语言齐送鼠年祝福_第1张图片

Python

print("Happy Year of the Rat !")

Java

public class HappyNewYear {
    public static void main(String[] args) {
        System.out.println("Happy Year of the Rat !");
    }
}

C

#include 
int main()
{
    printf("Happy Year of the Rat !");
    return 0;
}

C

#include 
using namespace std;
int main()
{
    cout << "Happy Year of the Rat !" << endl;
    return 0;
}

C#

using System;
namespace HappyNewYearApplication
{
    class HappyNewYear
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Happy Year of the Rat !");
            Console.ReadKey();
        }
    }
}

Object-C

NSLog(@"Happy Year of the Rat !")

Node.js

console.log("Happy Year of the Rat !");

PHP


VBScript


Delphi

showMessage('Happy Year of the Rat !')

Lua

print "Happy Year of the Rat !"

Matlab

disp('Happy Year of the Rat !')

Ruby

puts "Happy Year of the Rat !"

Android

Toast.makeText(getApplicationContext(), "Happy Year of the Rat !",Toast.LENGTH_SHORT).show()

Perl

print 'Happy Year of the Rat !'

R

cat("Happy Year of the Rat !")

HTML

Happy Year of the Rat !

ASP

response.write("Happy Year of the Rat !")

ActionScript

Alert.show("Happy Year of the Rat !")

Go

package main
import (
    "fmt"
)
func main() {
    a :="Happy Year of the Rat !"
    fmt.Printf("%s",a)
}

你可能感兴趣的:(Python,python,AI)