print(r"""'To be, or not to be:
that is the question.
Whether it's nobler in the mind to suffer.'""")
that is the question.
Whether it's nobler in the mind to suffer.'""")
2022-11-01
print(r"""'\"To be, or not to be\": that is the question.\n Whether it\'s nobler in the mind to suffer.'""")
2022-11-01
已采納回答 / qq_終結(jié)的開始_0
函數(shù)里面取值用中括號(hào)[ ] 不是用小括號(hào)( )names = kwargs['names']??? gender = kwargs['gender']??? age = kwargs['age']
2022-10-29
age = 1
if age>=18:
print('adult')
elif age>=6:
print('teenager')
elif age>=3:
print('kid')
else:
print('baby')
嘿嘿,可以這么寫
if age>=18:
print('adult')
elif age>=6:
print('teenager')
elif age>=3:
print('kid')
else:
print('baby')
嘿嘿,可以這么寫
2022-10-28
age = 19
if age>=18:
print('adult',age)
原來(lái)得這樣才是運(yùn)行成功
if age>=18:
print('adult',age)
原來(lái)得這樣才是運(yùn)行成功
2022-10-28
已采納回答 / weixin_慕俠6136764
因?yàn)閚um % 2 的結(jié)果是取余,當(dāng)num=1時(shí),mo的結(jié)果就是1,所以你下面的if mo == 0:就不會(huì)生效。
2022-10-27