售前咨询:400-0666-318
在python中书写空函数的两种方法
1.使用def语句创建
def fun(): Pass
def fun():
Pass
2.使用while语句创建
mutex = Truewhile (mutex == True) :Pass
mutex = True
while (mutex == True) :
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: python中paramiko的优缺点是什么