我想bottle.py
通过无线网络使用。不幸的是,我不知道如何进行设置。我想通过无线网络执行的代码(从另一台计算机执行)是:
import ctypes
from bottle import get, post, request, run
@get('/control')
def message():
return '''<form method='POST' action='/control'>
<input name='message' type='text'/>
<input type='submit'/>
</form>'''
@post('/control')
def send():
Message =request.forms.get('message')
MessageBox = ctypes.windll.user32.MessageBoxA
MessageBox(None,Message,'MESSAGE', 0)
run(host=127.0.0.1, port=8090)