eof()
我在使用python 3.5
如果可以的话
>>> kw_list
['Gears 5', ' Jump Force', ' Crackdown 3', ' Shenmue III', ' Rage 2', ' Sekiro: Shadows Die Twice', ' Skull & Bones', ' Devil May Cry 5', ' Kingdom Hearts III', ' Resident Evil 2 Remake', ' ANCESTORS: THE HUMANKIND ODYSSEY', 'ANIMAL CROSSING', ' ANTHEM', ' APE-OUT', ' ATOMIC HEART', ' BABYLON’S FALL', ' BIOMUTANT', ' BLOODSTAINED: RITUAL OF THE NIGHT', ' CODE VEIN', ' CONAN UNCONQUERED', ' CONTROL', ' CRACKDOWN 3', ' DAYS GONE', ' DEVIL MAY CRY 5', ' THE DIVISION 2', ' DOOM ETERNAL', ' DREAMS', ' FAR CRY NEW DAWN', ' ']
>>> map(str.strip, kw_list)
<map object at 0x102e26a58>
>>> kw_list
['Gears 5', ' Jump Force', ' Crackdown 3', ' Shenmue III', ' Rage 2', ' Sekiro: Shadows Die Twice', ' Skull & Bones', ' Devil May Cry 5', ' Kingdom Hearts III', ' Resident Evil 2 Remake', ' ANCESTORS: THE HUMANKIND ODYSSEY', 'ANIMAL CROSSING', ' ANTHEM', ' APE-OUT', ' ATOMIC HEART', ' BABYLON’S FALL', ' BIOMUTANT', ' BLOODSTAINED: RITUAL OF THE NIGHT', ' CODE VEIN', ' CONAN UNCONQUERED', ' CONTROL', ' CRACKDOWN 3', ' DAYS GONE', ' DEVIL MAY CRY 5', ' THE DIVISION 2', ' DOOM ETERNAL', ' DREAMS', ' FAR CRY NEW DAWN', ' ']
>>>
>>> kw_list = map(str.strip, kw_list)
为空