filename = 'guest.txt' while True: username = input('Please input you username(q to quit):') with open(filename,'a') as file_object: if username != 'q': file_object.write(username + '\n') else: break
10-3 10-4
猜你喜欢
转载自blog.csdn.net/weixin_42167016/article/details/80727519
今日推荐
周排行