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

2020-02-12 11:06:15 浏览数 (1)

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

“鼠”不尽的快乐!

“鼠”不尽的财富!

“鼠”不尽的幸福!

“鼠”不尽的甜蜜!

“鼠”不尽的健康!

Python

代码语言:javascript复制
print("Happy Year of the Rat !")

Java

代码语言:javascript复制
public class HappyNewYear {
    public static void main(String[] args) {
        System.out.println("Happy Year of the Rat !");
    }
}

C

代码语言:javascript复制
#include <stdio.h>
int main(){
    printf("Happy Year of the Rat !");
    return 0;
}

C

代码语言:javascript复制
#include <iostream>
using namespace std;
int main(){
    cout << "Happy Year of the Rat !" << endl;
    return 0;
}

C#

代码语言:javascript复制
using System;
namespace HappyNewYearApplication
{
    class HappyNewYear
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Happy Year of the Rat !");
            Console.ReadKey();
        }
    }
}

Object-C

代码语言:javascript复制
NSLog(@"Happy Year of the Rat !")

Node.js

代码语言:javascript复制
console.log("Happy Year of the Rat !");

PHP

代码语言:javascript复制
<?php

VBScript

代码语言:javascript复制
<script type="text/vbscript">

Delphi

代码语言:javascript复制
showMessage('Happy Year of the Rat !')

Lua

代码语言:javascript复制
print "Happy Year of the Rat !"

Matlab

代码语言:javascript复制
disp('Happy Year of the Rat !')

Ruby

代码语言:javascript复制
puts "Happy Year of the Rat !"

Android

代码语言:javascript复制
Toast.makeText(getApplicationContext(), "Happy Year of the Rat !",Toast.LENGTH_SHORT).show()

Perl

代码语言:javascript复制
print 'Happy Year of the Rat !'

R

代码语言:javascript复制
cat("Happy Year of the Rat !")

HTML

代码语言:javascript复制
<body><h1>Happy Year of the Rat !<h1></body>

ASP

代码语言:javascript复制
response.write("Happy Year of the Rat !")

ActionScript

代码语言:javascript复制
Alert.show("Happy Year of the Rat !")

Go

代码语言:javascript复制
}

0 人点赞