def bi(a):
if a >18:
return print("c")
else:
return print("n")
bi(16)
def sss(c):
if c>16:
return print("q")
elif c>18:
return print("c")
else:
return print("children")
sss(2)
可以看見定義的格式
def bi(a):
if a >18:
return print("c")
else:
return print("n")
bi(16)
def sss(c):
if c>16:
return print("q")
elif c>18:
return print("c")
else:
return print("children")
sss(2)
可以看見定義的格式
在使用jupyter notebook時,出現了這個問題,突然發現是自己忘記下scipy了。 解決:進入cmd 輸入: pip3 install scipy 收工。