为什么报错
def watchMovie(name="小甲鱼",cigaertte=True,beer=True,girlfirend=True):sentence = name+"带着"
if cigarette:
sentence = sentence+"香烟"
if beer:
sentence = sentence+"啤酒"
if girlfriend:
if cigarette or beer:
sentence=sentence+"和女朋友"
else:
sentence = sentence+"女朋友"
sentence = sentence+"去看电影"
reture sentence
SyntaxError: invalid syntax 拼写错误 reture
应该是 return
页:
[1]