Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73832
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-07-02 02:43 -0700 |
| Message-ID | <79aa79d7-bd71-4635-af9d-aae489cc06e4@googlegroups.com> (permalink) |
| Subject | How can I catch values from other def by flask??? |
| From | fk26541598fk@gmail.com |
this is my code
def aa():
if request.method=='POST':
get_test(value1)
return value1
else:
get_test(value2)
return value2
return 'it does not work'
def post_test(value1):
value1='POST it works'
return value1
def get_test(value2):
value2='GET it works'
how can i catch post_test value1 to aa() return???
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
How can I catch values from other def by flask??? fk26541598fk@gmail.com - 2014-07-02 02:43 -0700
Re: How can I catch values from other def by flask??? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-02 12:20 +0000
Re: How can I catch values from other def by flask??? Frank Liou <fk26541598fk@gmail.com> - 2014-07-02 18:27 -0700
csiph-web