You haven't really showed examples of the files to provide an idea of why additional characters are getting added, so I'll just provide a quick fix solution in Python. You can remove the "b'", the "
", and the "
" by using strip()
after converting usernameInput
and passwordInput
to a string:
usernameInput = usernameInput.get().decode("utf-8").strip("
").strip("
")
passwordInput = passwordInput.get().decode("utf-8").strip("
").strip("
")
strip()
basically removes the parameter provided at the beginning and end of a string, and decode()
converts the variables to strings.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…