题目链接:
def cookie(x):
if type(x) == str:
return 'Who ate the last cookie? It was Zach!'
elif type(x) == int or type(x) == float:
return 'Who ate the last cookie? It was Monica!'
return 'Who ate the last cookie? It was the dog!'
//简单题,但天天做一定会有收获的。送给每一个新学语言的朋友们