现在公认的几种计算机语言(你应该知道的四门计算机语言)

C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.,今天小编就来说说关于现在公认的几种计算机语言?下面更多详细答案一起来看看吧!

现在公认的几种计算机语言(你应该知道的四门计算机语言)

现在公认的几种计算机语言

  1. C 语言

C is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, and so on. C programming is an excellent language to learn to program for beginners.

每个大学生的必修语言,一切编程语言的基础,简单强大。

C Program to Display "Hello, World!"

#include <stdio.h> int main() { // printf() displays the string inside quotation printf("Hello, World!"); return 0; }

Output

Hello, World!

2 . C

C is a powerful general-purpose programming language. It can be used to develop operating systems, browsers, games, and so on. C supports different ways of programming like procedural, object-oriented, functional, and so on. This makes C powerful as well as flexible.

C (c plus plus)是一种计算机高级程序设计语言,由C语言扩展升级而产生。C 既可以进行C语言的过程化程序设计,又可以进行以抽象数据类型为特点的基于对象的程序设计,还可以进行以继承和多态为特点的面向对象的程序设计。

C "Hello World!" Program

// Your First C Program #include <iostream> int main() { std::cout << "Hello World!"; return 0; }

Run Code

Output

Hello World!

使用命名空间更简单:

#include <iostream> using namespace std; //使用命名空间 int main() { // prints the string enclosed in double quotes cout << "Hello World!"; return 0; }

Run Code

Output

Hello World!

3 .SQL

SQL (Structured Query Language) is a powerful and standard query language for relational database systems. We use SQL to perform CRUD (Create, Read, Update, Delete) operations on databases along with other various operations.

SQL结构化查询语言(Structured Query Language)简称SQL(发音:/ˈes kjuː ˈel/ "S-Q-L"),是一种特殊目的的编程语言,是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统。

4 .Python

Python is a popular general-purpose programming language. It is used in machine learning, web development, desktop applications, and many other fields. Fortunately for beginners, Python has a simple, easy-to-use syntax. This makes Python a great language to learn for beginners.

Python "Hello World!" Program

# This program prints Hello, world! print('Hello, world!')

Run Code

Output

Hello, world!

Python 对初级程序员而言,是一种伟大的语言,它支持广泛的应用程序开发,从简单的文字处理到 WWW 浏览器再到游戏。

Python 之禅:

Beautiful is better than ugly.

Explicit is better than implicit.

Simple is better than Complex.

Complex is better than complicated.

Flat is better than nested.

优美胜于丑陋(Python 以编写优美的代码为目标)

明了胜于晦涩(优美的代码应当是明了的,命名规范,风格相似)

简洁胜于复杂(优美的代码应当是简洁的,不要有复杂的内部实现)

复杂胜于凌乱(如果复杂不可避免,那代码间也不能有难懂的关系,要保持接口简洁)

扁平胜于嵌套(优美的代码应当是扁平的,不能有太多的嵌套)

,

免责声明:本文仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。文章投诉邮箱:anhduc.ph@yahoo.com

    分享
    投诉
    首页