|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
print("1.两只老虎2.数鸭子3.jingle bells4.小星星")
temp = input("请选出你最喜欢的歌曲:")
a = int(temp)
if isdigit(a)!=True:
print("输入错误!")
elif a > 5 or a < 1:
print("输入错误!")
elif a == 1:
print("两只老虎,两只老虎,\
跑得快,跑得快,\
一只没有眼睛,一只没有尾巴,\
真奇怪,真奇怪。")
elif a == 2:
print("门前大桥下,游着一群鸭。\
快来快来数一数,2,4,6,7,8。\
咕嘎咕嘎,真呀真多呀。\
数不清到底多少鸭,数不清到底多少鸭。")
elif a == 3:
print("Dashing through the snow.\
In a one-horse open sleigh.\
Over the fields we go.\
Laughing all the way.\
Bells on bob-tail ring.\
Making spirits bright.\
What fun it is to ride and sing\
A sleighing song tonight.\
Jingle bells, jingle bells,\
Jingle all the way.\
Oh what fun it is to ride\
In a one-horse open sleigh.\
Jingle bells, jingle bells,\
Jingle all the way.\
Jingle Bells,Jingle Bells,\
Jingle all the way.\
Oh what fun it is to ride\
In a one horse open sleigh")
elif a == 4:
print("一闪一闪亮晶晶,每天都是小星星。\
挂在天上发光明,好像无数小眼睛。\
一闪一闪亮晶晶,每天都是小星星。")
为什么输入这段脚本后程序抛出unexpected indent的疑问,求大佬解答!
你的缩进不对,没有什么语句段逻辑,为什么第二行就开始有了缩进
|
|