当我打电话从主子程序数组括号打印出如何避免打印[]中的数组括号?蟒蛇
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