How to modularize a code containing 'with' in Python

前端 未结 0 1310
半阙折子戏
半阙折子戏 2020-11-28 19:24

I have this code that I am using to get information from a mysql database

def query_result_connect(_query):
    with SSHTunnelForwarder((ssh_host, ssh_port),
         


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