```
#生成一个包含10个0~100之间随机整数的列表
#[45, 47, 58, 77, 76, 38, 38, 5, 9, 83]
import random
line = []
for i in range(10):
#line.append(i)
line.append(int(random.random()*100))
print(line)
a = random.random()
#print(a)
```
```
line = [45, 47, 58, 77, 76, 38, 38, 5, 9, 83]
```
```
#3.14之间5.6
import random
a = random.uniform(3.14,8.6)
print(a)
```
```
import turtle
import random
turtle.pencolor("red")
for i in range(30):
turtle.penup()
#turtle.goto(10,10)
#turtle.goto(random.random()*100*i,random.random()*100*i)
turtle.goto(random.randint(-300,300),random.randint(-300,300))
turtle.pendown()
s = random.randint(2,8)
turtle.circle(30,steps=s)
turtle.done()
```
- py转exe
- py服务器
- py登录
- py查询
- 爬TB热卖1017
- 爬TB分类1015
- 爬BD文库1010
- 爬文库924
- json917
- decode912
- 转码910
- radians829
- turtle827
- 画叶子820
- 树干815
- Turtle, mainloop718
- sorted716
- random711
- turtle.colormode709
- abs704
- begin_fill702
- randint,random627
- isalpha625
- keyword620
- compile618
- judge613
- list1.copy611
- random.choice606
- format_randint604
- save_csv528
- jieba523
- wordcloud521
- wordcloud516
- jieba.lcut514
- counts503
- format423
- 花瓣418
- strftime416
- turtle.fillcolor411
- random.random409
- pensize404
- 花蕊328
- input327
- eval_float320
- open319
- while314
- JCR影响因子313
- _to_chinese4_312
- encoding306
- read305
- flask1029