文件名的格式 [英] The format of filename

查看:207
本文介绍了文件名的格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到Python接受内置函数文件的

文件名参数的文档?


例如,我是意识到(通过渗透?)我可以在Unix和Dos上的文件名中使用'/ /'作为
a目录分隔符。但

这里记载的是什么?


-

Neil Cerutti

Where can I find documentation of what Python accepts as the
filename argument to the builtin function file?

As an example, I''m aware (through osmosis?) that I can use ''/'' as
a directory separator in filenames on both Unix and Dos. But
where is this documented?

--
Neil Cerutti

推荐答案

Neil Cerutti写道:
Neil Cerutti wrote:

我在哪里可以找到Python接受的文件作为

文件名参数到内置函数文件?
Where can I find documentation of what Python accepts as the
filename argument to the builtin function file?



Python将接受操作系统接受的任何内容。

Python will accept whatever the OS accepts.


例如,我知道(通过osmosis?)我可以在Unix和Dos上的文件名中使用'/''作为
a目录分隔符。但

这是有记录的吗?
As an example, I''m aware (through osmosis?) that I can use ''/'' as
a directory separator in filenames on both Unix and Dos. But
where is this documented?



它记录在操作系统的文档中。它可以用os.sep

和os.altsep来查询。

It''s documented in the OS''s documentation. It can be queried with os.sep
and os.altsep.


Neil Cerutti写道:
Neil Cerutti wrote:

我在哪里可以找到Python接受内置函数文件的

文件名参数的文档?


例如,我我知道(透过渗透?)我可以在Unix和Dos的文件名中使用'/''作为
a目录分隔符。但

这是有记录的吗?您的操作系统文档中的
Where can I find documentation of what Python accepts as the
filename argument to the builtin function file?

As an example, I''m aware (through osmosis?) that I can use ''/'' as
a directory separator in filenames on both Unix and Dos. But
where is this documented?



。 Python没有用文件名做任何事情。


< / F>

in the documentation for your operating system. Python doesn''t do
anything with the filenames.

</F>


2006-10-24,Leif K-Brooks< eu ***** @ ecritters.bizwrote:
On 2006-10-24, Leif K-Brooks <eu*****@ecritters.bizwrote:

Neil Cerutti写道:
Neil Cerutti wrote:

>举个例子,我知道(通过渗透?)我可以使用''/''
作为文件名中的目录分隔符在Unix和Dos上。
但这在哪里记录?
>As an example, I''m aware (through osmosis?) that I can use ''/''
as a directory separator in filenames on both Unix and Dos.
But where is this documented?



它记录在操作系统的文档中。可以使用os.sep和os.altsep查询



It''s documented in the OS''s documentation. It can be queried
with os.sep and os.altsep.



谢谢。 6.1.6 Miscellanious系统信息

的内容似乎正是我要找的。


-

Neil Cerutti

我度过了一个美好的夜晚,但这不是。 - 格劳乔·马克思

Thanks. The contents of 6.1.6 Miscellanious System Information
seems to be what I''m looking for.

--
Neil Cerutti
I''ve had a wonderful evening, but this wasn''t it. --Groucho Marx


这篇关于文件名的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆