The data in the form of tuple
But the open can only write the string
What method can solve this
CodePudding user response:
1, before writing to stringYoutuple=(1, 2, 3)
F.w rite (STR (youtuple))
2, with wb mode
CodePudding user response:
1, before writing to string