问题描述
from bottle import route,run,static_file,template
HOST = 'localhost'
@route('/static/')
def server_static(filepath):
return static_file(filepath,root='/home/k/TEST/Py/Bottle/')
@route('/')
def serve_homepage():
l1 = "my list A - l1"
l2 = "my list A - l2"
l3 = "my list A - l3"
return template('main.tpl',A1=l1,A2=l2,A3=l3)
run(host=HOST,port=8080,debug=True)
我正在使用bottle.py,我想将HTML中的输入附加到列表中。这在HTML中不起作用,所以我想通过python实现。有谁知道这是否可行以及如何实现。
<p>Wahlt eine Zeit</p>
Name Eingeben(Vor und Nach Namre)
<input>
<div>
<input type="radio" id="Time2" name="drone" value="huey"
checked>
<label for="Time2">24-25</label>
</div>
<div>
<input type="radio" id="Time1" name="drone" value="dewey">
<label for="Time1">20-24</label>
</div>
<div>
<input type="radio" id="Time0" name="drone" value="dewey">
<label for="Time0">20-24</label>
</div>
<input type="submit">
这样,如果有人选择20-23并且她的名字叫Susanne Hulk,我可以将该信息列出来。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)