为什么使用地图的清单上的地带不起作用?

时间:2019-01-02 06:58:52

标签: python-3.x python-3.5

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) 为空

0 个答案:

没有答案