系统模块介绍

it2022-05-06  0

代码:

#!/usr/bin/env python # encoding: utf-8 import sys import platform def a(vale1): def b(valeb): if valeb > vale1: print("%d is pass"%valeb) else: print("%d is fales"%valeb) return b c = a(60) d = a(90) c(59) c(89) d(89) print (platform.python_version()) print (sys.version) import random print (random.random()) print (random.randint(1,2)) print (random.randrange(1,10)) 呵呵

转载于:https://www.cnblogs.com/kamil/p/5227808.html


最新回复(0)