Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
12 lines (9 loc) · 370 Bytes

File metadata and controls

12 lines (9 loc) · 370 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding:utf-8 -*-
__author__ = 'gjw'
__time__ = '2018/1/9 0009 下午 4:10'
# 题目:输出一个随机数。
# 程序分析:使用 random 模块。
import random
print(random.random()) # 输入0-1之间的随机数
print(random.uniform(10,20)) # 输出10-20之间的随机数
print(random.randint(10,20)) # 输出10-20之间的随机整数
Morty Proxy This is a proxified and sanitized view of the page, visit original site.