Python论坛  - 讨论区

标题:[python-chinese] 关于os.mkdir问题

2004年03月23日 星期二 15:03

poly gentooo at 163.com
Tue Mar 23 15:03:29 HKT 2004

hi all:
  问个创建目录的问题,比如os.mkdir("c:\\aa\\bb")
为什么不行呢?不能创建多级的目录吗?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040323/e0bfc2d7/attachment.html

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

2004年03月23日 星期二 15:08

HuYanLianZheng leslie at exoweb.net
Tue Mar 23 15:08:02 HKT 2004

 

-----Original Message-----
From: poly [mailto:gentooo at 163.com]
Sent: Tuesday, March 23, 2004 3:03 PM
To: python-chinese at lists.python.cn
Subject: [python-chinese] ??os.mkdir??


[HuYanLianZheng] 用os.makedirs('d:\\a\\b\\c\\d') 试试

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040323/837389e3/attachment.htm

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

2004年03月23日 星期二 16:19

poly gentooo at 163.com
Tue Mar 23 16:19:56 HKT 2004

对,刚才dir(os)的时候看到有个makedirs,果然用这个就行了。
  ----- Original Message ----- 
  From: HuYanLianZheng 
  To: python-chinese at lists.python.cn 
  Sent: Tuesday, March 23, 2004 3:08 PM
  Subject: RE: [python-chinese] ??os.mkdir??



    -----Original Message-----
    From: poly [mailto:gentooo at 163.com]
    Sent: Tuesday, March 23, 2004 3:03 PM
    To: python-chinese at lists.python.cn
    Subject: [python-chinese] ??os.mkdir??


    [HuYanLianZheng] 用os.makedirs('d:\\a\\b\\c\\d') 试试


------------------------------------------------------------------------------


  _______________________________________________
  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/20040323/029fe93e/attachment.html

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

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

    你的回复:

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

    Zeuux © 2024

    京ICP备05028076号