Tornado 5.1 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 5.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 243 页 | 895.80 KB | 1 年前3Tornado 5.1 Documentation
changes in development tornado.concurrent — Work with Future objects tornado.log — Logging support tornado.options — Command-line parsing tornado.stack_context — Exception handling across asynchronous callbacks changes in development tornado.concurrent — Work with Future objects tornado.log — Logging support tornado.options — Command-line parsing Global functions OptionParser class tornado.stack_context — Exception version 4.2: This function existed in prior versions but was broken and undocumented until 4.2. tornado.options — Command-line parsing A command line parsing module that lets modules define their own options0 码力 | 359 页 | 347.32 KB | 1 年前3Tornado 6.4 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.2 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") Tornado Documentation, Release 6.2 (continued from previous page) # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 260 页 | 1.06 MB | 1 年前3Tornado 6.4 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.4 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 268 页 | 1.09 MB | 1 年前3Tornado 6.3 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 264 页 | 1.06 MB | 1 年前3Tornado 6.5 Documentation
broken and undocumented until 4.2. 6.7. Utilities 151Tornado Documentation, Release 6.5.1 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.1 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 245 页 | 904.24 KB | 1 年前3Tornado 6.0 Documentation
2: This function existed in prior versions but was broken and undocumented until 4.2. 6.7.4 tornado.options — Command-line parsing A command line parsing module that lets modules define their own options The options are then accessible as attributes of tornado.options.options: # myapp/db.py from tornado.options import define, options define("mysql_host", default="127.0.0.1:3306", help="Main user DB") servers") def connect(): db = database.Connection(options.mysql_host) ... # myapp/server.py from tornado.options import define, options define("port", default=8080, help="port to listen on") def start_server():0 码力 | 245 页 | 885.76 KB | 1 年前3
共 20 条
- 1
- 2