PythonDay02

 

1>

 

The basic format:

 

2>

 

The second asked not to do it.

 

3>

Branch structure

 

4>

 

 

5>

The one with the computer, you can refer to compare side

 

 computer = np.random.choice ([ 'scissors', 'rock', 'cloth'])

 The phrase means that the random numbers

6> 10 cycles, from 0 to 9

 

7>

Act One:

 

Act II:

 

 

8>

 

Output 5 times. From 0-9, no two outputs first compartment

9> computer speed test

 

10>

#for cycle real purpose is for the loop (iterable)

11>

 

12>

 

 

 

13>

 

 

 Write down:

 

 14> prime

 

15>

 

 

 

 

 16> string to print one by one

Note that format! ! ! ! !

 

 

 

 17> is not running (with errors)

 

 

 

Guess you like

Origin www.cnblogs.com/mqqq/p/11502392.html