Www.mann-ivanov-ferber.ru

[Pages:22]2

, Python, Minecraft? Python, !

Minecraft, Python . Python-!

?

-- , . ?? . , , ?? ??, . -- .

. , , , Minecraft, -- .

, ( ) (Python) Minecraft.

2.

53

Pickaxes --

Python . , . -- : , , , . . , pickaxes 12:

>>> pickaxes = 12

! Python , . . (. . 4) . . . .

-- Minecraft

Bread --

-- ?, !?. Minecraft . !

Python, , ?? (=), . , . . bread 145:

>>> bread = 145

??, , , -- (. 2.1). , bread 145.

, , . EnTER:

bread = 145

. 2.1. . 145 ,

!

>>> bread 145

54

Minecraft

, , . , . . , , Python-. , .

! , . IDLE, . , bread?

-- . , , . Python, , , , .

. , Python -- . .

, (pickaxes), (iron ore) (cobblestone). :

>>> pickaxes = 12 >>> iron = 30 >>> cobblestone = 25

. 2.2 , . . , . Python , . , Python :

>>> pickaxes = 12 iron = 30 cobblestone = 25 SyntaxError: invalid syntax

2.

55

. 2.2. Python

(SyntaxError) , Python . , . ? ? (invalid syntax).

Python , , :

>>> iron = 30 SyntaxError: unexpected indent

, , . ? ? (unexpected indent) , , .

Python , . , -- , .

, , Python. :

56

Minecraft

? , , (_).

? . 9bread . -- , : bread9.

? ?? . , , .

. , , !

. , Minecraft . cats 5. :

Cats --

>>> cats = 5 >>> cats 5

. , 10?

>>> cats = 10 >>> cats 10

, 5! , cats - , 10.

. , . -- . .

. 10, 32, -6, 194689 ?5 , 3,4 6,025 -- .

2.

57

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download