新手求助
defwatchmovie (name='吞吞然' , milk=true , fruit=true , mother=true):sentence = mingzi + '带着'
if milk :
sentence=sentence+'牛奶'
if fruit:
sentence=sentence+'水果'
if mother:
if milk or fruit:
sentence=sentence+'和妈妈'
else:
sentence=sentence+'和妈妈'
sentence=sentence + '去游乐场'
returnsentence
Traceback (most recent call last):
File "C:/Users/xingyifei/Desktop/33333.py", line 1, in <module>
defwatchmovie (name='吞吞然' , milk=true , fruit=true , mother=true):
NameError: name 'true' is not defined
菜鸟求助 这个是怎么回事呀! True 是不是等于号左右没空格啊 疾风怪盗 发表于 2020-11-5 09:45
True
明白了 多谢
页:
[1]