14
2020
03

Python random number

import random


print("Printing random float number with two decimal places is ", round(random.random(), 1))

print("Random float number between 36.4 and 36.9 with two decimal places is ", round(random.uniform(36.4,36.9), 1))

« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。