2005年12月13日 星期二 00:18
python,您好!
PYTHON中如何做呢?比如,把:
“C:\PATH1\ABC.TXT"
变成:
“C:/PATH1/ABC.TXT"
谢谢
cry
致
礼!
cry
zyqmail at tom.com
2005年12月13日 星期二 00:51
>>> s = 'C:\PATH1\ABC.TXT'
>>> ns = s.replace('\\', '/')
>>> ns
'C:/PATH1/ABC.TXT'
>>>
在05-12-13,cry <zyqmail at tom.com> 写道:
>
> python,您好!
>
> PYTHON中如何做呢?比如,把:
> "C:\PATH1\ABC.TXT"
> 变成:
> "C:/PATH1/ABC.TXT"
>
> 谢谢
>
> cry
>
>
> 致
> 礼!
>
> cry
> zyqmail at tom.com
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
--
欢迎访问:
http://blog.csdn.net/ccat
刘鑫
March.Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20051213/449b608a/attachment.htm
2005年12月13日 星期二 10:20
db = cx_Oracle.connect(" ","user","pw") 其中第一个参数,是什么, 我试了 oracle 的本地服务名称,
不行?提示无法处理服务明。
那么该是什么
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20051213/595ebbe1/attachment.html
Zeuux © 2025
京ICP备05028076号