Read file with timestamp as name

前端 未结 0 1544
难免孤独
难免孤独 2021-01-29 06:48

I have a file name: 20200925-183744pm.txt. I am unable to read with following code:

file1 = open(\'(fil2)\', \'.txt\', \'r\')
Lines = file1.readlines         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题