售前咨询:400-100-2938
在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中如何写一个线性函数