2004年03月23日 星期二 15:03
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
2004年03月23日 星期二 15:08
-----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
2004年03月23日 星期二 16:19
对,刚才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
Zeuux © 2024
京ICP备05028076号