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