how to get the list form dictionary's values
Ho Yeung Lee
davidbenny2000 at gmail.com
Sun Feb 21 09:21:34 EST 2016
Peter Otten於 2016年2月21日星期日 UTC+8下午10時07分18秒寫道:
> davidbenny2000 at gmail.com wrote:
>
> > File "mainpy.py", line 81
> > for functionlistelement in functionlist0
> > ^
> > SyntaxError: invalid syntax
> >
> >
> > import asyncio
>
> [snip]
>
> > mappedfunc = {}
> > functionlist000 = []
> > functionlist001 = []
> > functionlist002 = []
> > functionlist003 = []
> > functionlist004 = []
>
> [snip many names with numeric suffix and repeated method calls]
>
> I have no idea what you are trying to do; however, your code looks awfully
> redundant. This is errorprone:
>
> functionkey000 = {'000': f000 }
> functionkey001 = {'001': f001 }
> functionkey002 = {'002': f002 }
> functionkey002 = {'003': f003 }
> functionkey002 = {'004': f004 }
>
> > for functionlistelement in functionlist0
>
> To answer what seems to be your actual question: a colon is missing at the
> end of this line.
hi Peter,
i am running this task flow in this graph,
these code are not redundant, because this writing can clearly
show the work flow
https://drive.google.com/file/d/0B7fHc_dTzkY_OGMtTGI2UnR6ZEE/view?usp=sharing
Regards,
Martin Lee
More information about the Python-list
mailing list