【发布时间】:2014-02-17 17:39:34
【问题描述】:
我有这个用于总结文本的脚本,并希望从 html 文本字段中获取输入以将其输入到脚本中,然后它们会在页面上显示结果。
我现在有
title = raw_input('Type a title for the text here:')
content = raw_input('Type the text to be summarized here:')
如何更改它以从 html 表单中获取输入?
Title:< input type = "text>
Content:< input type = "text>
【问题讨论】:
-
这是在网站的上下文中,还是您想使用离线网页?
-
你为什么要这样做?
-
为了让脚本更容易使用,可能把它放到网上
标签: javascript jquery python html