小弟不才,请大家告知,非常感谢,如下。
在 html 里代码 1:
<div class="input-red">
<input type="number" name="math_word" class="form-red2" orders="请输入 20--50 之间的金额">
</div>
在 html 里代码 2:
<div class="input-yellow">
<input type="text" name="math_word" class="form-yellow2" orders="请输入问题的正确答案">
</div>
====================
想用 python 的 requests.post 里提交数据:
answer=raw_input("填入正确的")
data={"math_word":answer}
-------------------------------------------
请问在 html 里的数据类型会影响我的数据提交吗?
比如<input type="number"和<input type="text"
如果有影响,请问需要在<input type="number"这个数据类型下把 raw_input 获得的字符串转为 int 吗?
在 html 里代码 1:
<div class="input-red">
<input type="number" name="math_word" class="form-red2" orders="请输入 20--50 之间的金额">
</div>
在 html 里代码 2:
<div class="input-yellow">
<input type="text" name="math_word" class="form-yellow2" orders="请输入问题的正确答案">
</div>
====================
想用 python 的 requests.post 里提交数据:
answer=raw_input("填入正确的")
data={"math_word":answer}
-------------------------------------------
请问在 html 里的数据类型会影响我的数据提交吗?
比如<input type="number"和<input type="text"
如果有影响,请问需要在<input type="number"这个数据类型下把 raw_input 获得的字符串转为 int 吗?