你說:
Help me write a Python script that marks the length of all lines from a text file and tells if there's punctuation mark at the end of the line. Punctuation marks are in Simplified Chinese and Traditional Chinese. Save the result to both a variable and a new text file.
(test.txt)
'生命真好!\n'
'我們去外頭走走,好好享受生命\n'
(result)
6, y
15, n