TIOBE编程语言排行榜2019Top20的Hello World代码击键数统计
2020-06-13 14:38:43
浏览次数:105

TIOBE编程语言排行榜2019Top20的Hello World代码击键数统计

采用相同的输出字符串 Hello World,Shift忽略不计。

Java,125

创建文件 HelloWorld.java(文件名需与类名一致)

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}

C,79

#include <stdio.h>
int main()
{
    printf("Hello World");
    return 0;
}

Python,22

print("Hello, World!")

C++,110

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello world" << endl;
    return 0;
}

Visual Basic .NET,54

Sub Main()
    Console.WriteLine("Hello world")
End Sub

JavaScript,27

console.log("Hello world!")

C#,188

using System;
namespace HelloWorld
{
    class HelloWorld
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}

PHP,26

<?php
echo 'Hello World';

SQL,53

begin
    dbms_output.put_line('hello world');
end;

Objective-C,181

#import<Foundation/Foundation.h>
int main(intargc,constchar*argv[]){
    NSAutoreleasePool*pool=[[NSAutoreleasePoolalloc]init];
    NSLog(@"Hello World");
    [pooldrain];
    return 0;
}

MATLAB,49

function HelloWorld()
    disp('Hello World');
end

R,77

helloworld <-function(){
  myString <- "Hello World"
  print ( myString)
}

Perl,20

print "Hello World";

Assembly language(汇编),117

jmp start
str: db  "Hello World$"
start: mov dx,str
    mov ah,9h
    int 21h
    mov ah,4ch            
    int 21h

Swift,20

print("Hello World")

Go,76

package main
import "fmt"
func main() {
    fmt.Println("Hello World")
}

Delphi/Object Passcal,96

procedure TForm1.Button1Click(Sender: TObject);
begin
  Label1.Caption := 'Hello World';
end;

Ruby,19

puts "Hello World";

PL/SQL,53

begin
    dbms_output.put_line('Hello world');
end;

Visual Basic,131

Imports System

Module Program
    Sub Main(args As String())
        Console.WriteLine("Hello World")
    End Sub
End Module

代码击键数统计方法
代码击键数统计方法

世界编程语言排行榜
世界编程语言排行榜

版权声明


本文为博主原创文章,转载请附上博文链接!