当前文件的行号 

 

try:
f = open(sys.argv[1], "rb")
address_book.ParseFromString(f.read())
f.close()
except IOError:
print("here is :", __file__,
sys._getframe().f_lineno)

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2021-11-23
  • 2021-11-13
  • 2021-10-27
  • 2021-12-05
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案