Sunday 15 September 2013

python - raw input analog in Bottle -


How do I create raw_input () in a bottle structure? In student for student.pop (int (l)): for the idx: [name]: print d, idx l = raw_input ('input number for deletion'): if M [ 'Name'] =='s ['name']: This.append (k)

If I return a template instead of raw_input () I will lose all other functions and I do not want to write this action in the console.

Bottle is a web-framework and therefore all its input and output are through a web server This means that even if there is a standard input of the web server, then there is definitely no link to any web browser, so there is no use in the raw_input bottle WSGI environment.

The most common means of obtaining user input under WSGI is through a browser browser request, for that, you should learn about it.

No comments:

Post a Comment