Python论坛  - 讨论区

标题:Re: [python-chinese] 这是dict的用法吗?

2005年06月20日 星期一 09:52

Qutr qutianrang at gmail.com
Mon Jun 20 09:52:43 HKT 2005

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050620/0a2a3bed/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月20日 星期一 10:18

Zoom Quiet zoom.quiet at gmail.com
Mon Jun 20 10:18:23 HKT 2005

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!]

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号