Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78318
| Date | 2014-09-25 08:15 +0800 |
|---|---|
| From | luofeiyu <elearn2014@gmail.com> |
| Subject | Re: how to make return(self.res) not to output the content of list ? |
| References | <5422CD52.8060501@gmail.com> <CALwzidnXDdtpUt6PZTEnMUeh4p+1q0pCrGyhv10rP2w7+J9UoA@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14336.1411604144.18130.python-list@python.org> (permalink) |
You could write a separate method that just calls self.grow() and does
not return the result, and call that method instead from the interactive
interpreter.
how can i change your meaning into python code?
There is my code structure.
class status():
def grow(self):
self.res= a data ananlyse process
return(self.res)
def display(self):
#to display it in the html table
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to make return(self.res) not to output the content of list ? luofeiyu <elearn2014@gmail.com> - 2014-09-25 08:15 +0800
csiph-web