python中object has no attribute_【求助】AttributeError: 'function' object has no attribute '

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

796cfad50a2e5c7f78f8f785e0485e24.png

theselectedsongs = []

def you():

theselectedsongs.append('Your time To Shine')

print "已点歌曲如下:"

print theselectedsongs

def better():

theselectedsongs.append('Better than one')

print "已点歌曲如下:"

print theselectedsongs

def good():

theselectedsongs.append('Good life')

print "已点歌曲如下:"

print theselectedsongs

def counting():

theselectedsongs.append('Counting stars')

print "已点歌曲如下:"

print theselectedsongs

def beauty():

theselectedsongs.append('Beauty and a beat')

print "已点歌曲如下:"

print theselectedsongs

def tobe():

theselectedsongs.append('Good to be alive')

print "已点歌曲如下:"

print theselectedsongs

def printmenuone():

while True:

print "-------------------------英语----------------------------"

print " 1: 歌曲名: Your time To Shine 歌手: Andrew Allen "

print " 2: 歌曲名: Better than one 歌手: The Score "

print " 3: 歌曲名: Good life 歌手: G-Eazy "

print " 4: 歌曲名: Counting stars 歌手: Alex Goot"

print " 5: 歌曲名: Beauty and a beat 歌手: Alex Goot"

print " 6: 歌曲名: Good to be alive 歌手: Jason Gray"

print " 0: 返回 "

break

def English():

while True:

printmenuone()

choice = input("请输入你的选择 : ")

if choice == 1:

you()

elif choice == 2:

better()

elif choice == 3:

good()

elif choice == 4:

counting()

elif choice == 5:

beauty()

elif choice == 6:

tobe()

elif choice == 0:

return

break

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值