各种编程语言送祝福:2024龙年大吉
我是码农一枚,在这里用不同编程语言中祝福大家"2024,龙年大吉"~
Python
print("2024,龙年大吉")
Java
public class Main {
public static void main(String[] args) {
System.out.println("2024,龙年大吉");
}
}
C++
#include <iostream>
using namespace std;
int main() {
cout << "2024,龙年大吉" << endl;
return 0;
}
JavaScript
console.log("2024,龙年大吉");
Ruby
puts "2024,龙年大吉"
Go
package main
import "fmt"
func main() {
fmt.Println("2024,龙年大吉")
}
C#
using System;
class Program {
static void Main(string[] args) {
Console.WriteLine("2024,龙年大吉");
}
}
Swift
print("2024,龙年大吉")
Kotlin
fun main() {
println("2024,龙年大吉")
}
PHP
<?php
echo "2024,龙年大吉";
?>
Rust
fn main() {
println!("2024,龙年大吉");
}
TypeScript
console.log("2024,龙年大吉");
Scala
object Main extends App {
println("2024,龙年大吉")
}
Perl
print "2024,龙年大吉\n";
Haskell
main = putStrLn "2024,龙年大吉"
Lua
print("2024,龙年大吉")
SQL
SELECT '2024,龙年大吉';
没提到的编程语言,欢迎大家继续补充~