Convert .txt file to integer in Python 3.7.3

前端 未结 0 1307
感动是毒
感动是毒 2020-12-17 04:40

I need to turn a .txt file with a single number into a variable with the type \'int\'. This is my code so far:

   coinBalance = open.(\'coinBalance\', \'r\')
         


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