b64decode를 import하여 문제를 해결!
from base64 import b64decode T = int(input()) for tc in range(1, T + 1): word = input() a = b64decode(word).decode('UTF-8') print('#{} {}'.format(tc,a))