摘要:
PyInstaller库的安装与使用: https://www.icourse163.org/learn/BIT-268001?tid=1461953449#/learn/content?type=detail&id=1238742662&cid=1259496190&replay=true 阅读全文
posted @ 2021-01-25 18:47
长风青云
阅读(55)
评论(0)
推荐(0)
摘要:
函数理论部分: 1.函数的定义: 2.函数的调用: def Function(n) : # 计算阶乘 sum = 1 for i in range(1,n + 1) : sum *= i return sum print(Function(10)) 3.函数的参数传递: # 函数可以没有参数,但必须 阅读全文
posted @ 2021-01-25 18:25
长风青云
阅读(306)
评论(0)
推荐(0)
摘要:
import random random.seed() # 按时间随机 print(random.random()) import random random.seed() # 按时间随机 print(random.random()) print(random.randint(1,100)) # r 阅读全文
posted @ 2021-01-25 01:15
长风青云
阅读(96)
评论(0)
推荐(0)
摘要:
分支结构: 1.单分支结构: # 猜数字 while True : a = eval(input()) if(a == 55): print("猜对了!") break 2.二分支结构: # 猜数字 while True : a = eval(input()) if(a == 55): print( 阅读全文
posted @ 2021-01-25 00:35
长风青云
阅读(144)
评论(0)
推荐(0)
浙公网安备 33010602011771号