编写一个简单的python程序_如何编写一个简单的程序

先阅读一段英文的:

computer

program

and

source

code

,看不懂不要紧,可以跳过去,

直接看下一条。

A computer program, or just a program, is a sequence of instructions, written to

perform

a

specified

task

with

a

computer.[1]

A

computer

requires

programs

to

function,

typically executing the program's instructions in a central processor.[2] The

program has an executable form that the computer can use directly to execute the

instructions. The same program in its human-readable source code form, from which

executable

programs

are

derived

(e.g.,

compiled),

enables

a

programmer

to

study

and

develop its algorithms. A collection of computer programs and related data is

referred to as the software.

Computer source code is typically written by computer programmers.[3] Source code

is

written

in

a

programming

language

that

usually

follows

one

of

two

main

paradigms:

imperative or declarative programming. Source code may be converted into an

executable

file

(sometimes

called

an

executable

program

or

a

binary)

by

a

compiler

and later executed by a central processing unit. Alternatively, computer programs

may be executed with the aid of an interpreter, or may be embedded directly into

hardware.

Computer programs may be ranked along functional lines: system software and

application software. Two or more computer programs may run simultaneously on one

computer

from

the

perspective

of

the

user,

this

process

being

known

as

multitasking.

计算机程序

计算机程序(

Computer

Program

)是指一组指示计算机或其他具有信息处理能力装置每一步

动作的指令,通常用某种程序设计语言编写,

运行于某种目标体系结构上。

打个比方,

一个

程序就像一个用汉语(程序设计语言)写下的红烧肉菜谱(程序),用于指导懂汉语和烹饪

手法的人(体系结构)来做这个菜。

通常,

计算机程序要经过编译和链接而成为一种人们不易看清而计算机可解读的格式,

然后

运行。未经编译就可运行的程序,通常称之为脚本程序(

script

)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值