摘要:
#知识点1 模块的导入#方式1# import cal# cal.add()# cal.mul()#方式2# from cal import add,sub## add()# sub()#方式3 不推荐 不用的也导入进来了,影响性能。如果本地有重复的函数,会有冲突。# def add():# pri 阅读全文
posted @ 2021-04-15 10:46
lpaxq
阅读(129)
评论(0)
推荐(0)
摘要:
import random# #0-1的随机浮点数# print(random.random())## #1-3之间的浮点数# print(random.uniform(1,3))## #随机整数# print(random.randint(1,5))## #顾头不顾尾# print(random. 阅读全文
posted @ 2021-04-15 10:42
lpaxq
阅读(85)
评论(0)
推荐(0)

浙公网安备 33010602011771号