2005年06月20日 星期一 10:22
五层?强啊,我就用了三层,列表里面是字典,字典里面还有字典。呵呵! Qutr , qutianrang at gmail.com 2005-6-20 ----- 收到以下来信内容 ----- 发件人: Zoom Quiet 收件人: qutianrang,python-chinese 时 间: 2005-06-20, 10:18:23 主 题: Re: [python-chinese] 这是dict的用法吗? Py 的数据对象是非常宽容的! http://wiki.woodpecker.org.cn/moin/EasyPaper 我已经使用过高达五层的混合物对象了,没有任何问题的! 在 05-6-20,Qutr<qutianrang at gmail.com> 写道: > ZeroSlug,你好 > 字典里面含字典 > > Qutr, qutianrang at gmail.com > 2005-6-20 > ----- 收到以下来信内容 ----- > 发件人: ZeroSlug > 收件人: python-chinese > 时 间: 2005-06-18, 18:23:22 > 主 题: [python-chinese] 这是dict的用法吗? > > > > 在《python scripting for computational science》里看到的这样的用法,这是字 > 典还是? > --- > # data > compiler_data['GNU']['type'] = 'GNU 3.0' > compiler_data['GNU']['name'] = 'g77' > compiler_data['GNU']['options'] = '-Wall' > compiler_data['GNU']['libs'] = '-lf2c' > compiler_data['GNU']['test'] = '-Wall' > compiler_data['GNU']['flags'] = ('-O1','-O3','-O3 -funroll-loops') > > for compiler in compiler_data: > c = compiler_data[compiler] # 'GNU', 'Sun', etc. > cmd = ' '.join([c['name'], c['options'], c['libs']]) > for flag in c[flags]: > os.system(' '.join([cmd, flag, ' -o app ', files])) >> > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- [Time is unimportant, only life important!] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050620/8e818b96/attachment.htm
Zeuux © 2025
京ICP备05028076号