高级语言 高级语言(High-level programming language)相对于机器语言(machine language,是一种指令集的体系.这种指令集,称机器码(machine code),是电脑的CPU可直接解读的数据)而言.是高度封装了的编程语言,与低级语言相对.它是以人类的日常语言为基础的一种编程语言,使用一般人易于接受的文字来表示(例如汉字.不规则英文或其他外语),从而使程序编写员编写更容易,亦有较高的可读性,以方便对电脑认知较浅的人亦可以大概明白其内容.由于早期电脑业的发…
Introduction to OOC Programming Language 文/akisann @ cnblogs.com / zhaihj @ github.com 本文同时发布在github上:https://github.com/zhaihj/intro-ooc 本文遵循CC-BY-NC. 我想试一门新语言……但: 我希望这门语言能简洁易懂 —— 排除了Perl/Rust... 我不想自己管理内存 —— 排除了C/C++/Object Pascal... 最好它能跟C差不多快 ——…
Contents Tutorial Hello, World Command-Line Arguments Finding Duplicate Lines A Web Server Loose Ends Program Structure Names Declarations Variables Assignments Type Declarations Packages and Files Scope Basic Data Types Integers Floating-Point Numbe…
The Go Programming Language Specification go语言规范 Version of May 9, 2018 Introduction 介绍 Notation 符号 Source code representation 源代码表示形式 Characters 字符 Letters and digits 字母和数字 Lexical elements 词法元素 Comments 评论 Tokens 令 牌 Semicolons 分号 Identifiers 标识符 K…
This is a set of coding conventions and rules for use in JavaScript programming. It is inspired by the Sun document Code Conventions for the Java Programming Language. It is heavily modified of course because JavaScript is not Java. The long-term val…
probably Unix Shell scripts, Perl, or Python and R can be the best options. ---------- 1-python 2-R 3-perl ---------- I would say, Python AND R. Although, just python would be sufficient already, it has great capabilities (including bioinformatics li…
https://talks.golang.org/2012/splash.article Go at Google: Language Design in the Service of Software Engineering Rob Pike Google, Inc. @rob_pike http://golang.org/s/plusrob http://golang.org Contents Abstract Introduction Go at Google Pain points De…
iOS Swift-元组tuples(The Swift Programming Language) 什么是元组? 元组(tuples)是把多个值组合成一个复合值,元组内的值可以使任意类型,并不要求是相同类型. 元组长什么样? 如下: let nameAndAge = ("旭宝爱吃鱼",22); print(nameAndAge); 打印出了什么呢? 如下: ("旭宝爱吃鱼", 22) 是不是对元组有了清晰的了解了呢... 那么下面继续深入了解一下. 元组的分解 比…
iOS Swift-控制流(The Swift Programming Language) for-in 在Swift中for循环我们可以省略传统oc笨拙的条件和循环变量的括号,但是语句体的大括号使我们必须要写的,拿一个遍历数组的例子来介绍: //遍历数组中的元素 let listArray = [1,2,3,4,5,6,7,8,9]; for number in listArray { print(number) } 如果我们想让循环体循环10次我们该怎么去做呢??? //这是一个很不错的方法…
iOS Swift-简单值(The Swift Programming Language) 常量的声明:let 在不指定类型的情况下声明的类型和所初始化的类型相同. //没有指定类型,但是初始化的值为int.因此constant的类型为int let constant = 100 在制定类型的情况下声明的类型要和初始化的类型相同,否则报错. //这是正确的写法 let constant: Int = 100 //这是错误的写法会报错 let constant: Int = 100.0 变量的声明…