2014-02-17 69 views
1

我有用於彙總文本的此腳本,並且希望從html文本字段獲取輸入以將其輸入到腳本,並在頁面上顯示結果。如何從html表單輸入並添加到python腳本

我現在有

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> 
+0

這是在網站上下文中,還是您想使用離線網頁? – rlms

+0

離線網頁 – user3213259

+0

你爲什麼要這樣做? – rlms

回答