1

c

#include<stdio.h>
int main(void)
{
  printf("生日快乐");
  return 0;
}

python

print("生日快乐")

java

 public static void main(String[] args) {
        System.out.println("生日快乐");
    }

c++

#include<iostream>
using namespace std;
int main(){
  cout<<"生日快乐";
  return 0;
}

c#

Console.Write("生日快乐");

JavaScript

console.log("生日快乐")

PHP

<?php

echo "<h2>生日快乐</h2>";

Objective-C

NSLog(@"%@",@"生日快乐");

Dart

void main() {
  print("生日快乐");

Kotlin

println("生日快乐")

scala

print("生日快乐"

TypeScript

console.log("生日快乐")

This article has participated in the SegmentFault essay "9th Anniversary of Thinking", and you are welcome to join us if you are reading it.


我的小熊不见了
1.6k 声望4.3k 粉丝