當我打電話從主子程序數組括號打印出如何避免打印[]中的數組括號?蟒蛇
def hobby(hobbies, correct_hobbies, incorrect_hobbies):
number = 0
underscore = ["_"]*len(hobbies)
while number <len(hobbies):
if hobbies[count] in correct_hobbies:
underscore[count]=hobbies[count]
我沒有看到打印聲明。你能否在一個問題上付出很少的努力? – timgeb