关于os.path子库,以下选项中获得文件或目录最近一次修改时间的是:‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‪‪‪‪‪‪‪A.os.path.getatime(path)B.os.path.getctime(path)C.os.path.getdtime(path)D.os.path.getmtime(path)

关于os.path子库,以下选项中获得文件或目录最近一次修改时间的是:‪‪‪‪‪‪‪‪‪‪‪‫‪‪‪‪‪‫‪‪‪‪‪‪‪‪‪‪‪‪

A.os.path.getatime(path)

B.os.path.getctime(path)

C.os.path.getdtime(path)

D.os.path.getmtime(path)


参考答案和解析
os.path.getmtime(path)

相关考题:

已知在D\Python目录下有一个test.dat文件,则下列选项中返回True的是。() A、os.path.isfileD\\Python\\test.datB、os.path.isdirD\\PythonC、os.path.existsD\\PythonD、os.path.existsD\\Python\\test.dat

Python标准库os.path中用来判断指定路径是否为文件的方法是_______________。

下面关于PATH命令的说法中,正确的一条是( )A.PATH命令后跟一个分号(;)的功能是显示已设置的文件搜索路径B.PATH命令是外部命令C.PATH命令只能指定扩展名为.COM、.EXE、.BAT的文件的搜索路径D.PATH命令后不跟任何参数,其功能是删除已设置的文件搜索路径

当改变目录列表框控件Dir1中的当前目录时,希望同步改变文件列表框File1中显示的文件,在Dir1_Change事件过程中使用的命令是A.File1.Path=Dir.PathB.Dir1.Path=File1.PathC.File1.Path=Dir1.DriveD.Dir1.Drive=File1.Path

在窗体上画一个驱动器列表框、一个目录列表框和一个文件列表框,其名称分别为Drivel、Dirl和Filel,为了使它们同步操作,必须触发驱动器的Change事件和目录的Change事件,在这两个雾件中执行的语句分别为( )。A. Filel.Ptth=Drivel.Drive和Filel.Path=Dirl.PathB. Dirl.Path=Drivel.Drive和Filel.Path=Dirl.PathC. Dirl.Path=Dirl.Path和Filel.Path=Drivel.DriveD. Dirl.P tth=Drivel.Path和Filel.Path=Dirl.Path

使用驱动器列表框drive1、目录列表框dir1、文件列表框file1时,需要设置控件的同步,以下能够正确设置两个控件同步的命令是A)dir1.path=drive1.pathB)file1.path=dir1.pathC)file1.path=drive1.pathD)drive1.drive=dir1.path

What command will allow the operator to add the current working directory to the command search path?() A. export PATH=pwdB. export PATH=$PWDC. export PATH=$PATH:pwdD. export PATH=$PATH:$PWD

要使文件列表框中的文件随目录列表框中所选择的当前目录的不同而发生变化,应该A.在File1中的Change事件中,输入File1.Path=Dir1.PathB.在Dirl中的Change事件中,输入File1.Path=Dir1.PathC.在File1中的Change事件中,输入Dir1.Path=File1.PathD.在Dir1中的Change事件中,输入Dir1.Path=File1.Path

下面关于path和classpath的说法中,错误的是() A、path用来指定java虚拟机(JVM)所在的目录B、classpath用来指定我们自己所写的或要用到的类文件(.jar文件)所在的目录C、在dos命令行中,classpath和path环境变量的查看与配置的方式不相同D、只要设置了classpath这个环境变量系统就不会再在当前目录下查询某个类

使用StreamWriter以追加的方式向文件中写入数据,可以通过下面()方式实现。ADim sw As StreamWriter = New StreamWriter(path, true)BDim sw As StreamWriter = New StreamWriter(path, false)CDim sw As StreamWriter = File.Append(path)DDim sw As StreamWriter = File.AppendText(path)

以下程序段简要说明驱动器列表框、目录列表框及文件列表框三者协同工作的情况。括号处应填入是() AFile1.Path=Dir.PathBFile.Path=Dir1.PathCFile.Path=Dir.PathDFile1.Path=Dir1.Path

使计算机不仅能在当前目录中查找外部命令,还可以在C盘的根目录下和C盘的一级子目录DOS下查找外部命令,应键入()命令。A、PATH C:///;DOSB、PATH D:///;C:///DOSC、PATH C:///;C:///DOSD、PATH C:///DOS

Python标准库os.path中用来分割指定路径中的文件扩展名的方法是()。

linux系统中,以下显示结果相同的是()。A、echo The current working path is $PWD.B、echo "The current working path is $PWD." Echo helloC、echo 'The current working path is $PWD.' Echo helloD、echo "The current working path is `pwd`."E、echo The current working path is $PWD. Echo hello

linux系统中,以下显示结果不同的是()。A、echo The current working path is $PWD.B、echo 'The current working path is $PWD.'C、echo "The current working path is $PWD."D、echo "The current working path is `pwd`."

Python标准库os.path中用来判断指定路径是否为文件夹的方法是()。

Python标准库os.path中用来判断指定文件是否存在的方法是()。

要实现驱动器列表框、目录列表框及文件列表框之间数据的同步,须在驱动器列表框和目录列表框的Change事件分别添加以下代码()A、Dir1.Path=Drive1.DriveFile1.Path=Dir1.PathB、File1.Path=Drive1.DriveDir1.Path=Drive1.DriveC、Dir1.Path=Drive1.DriveFile1.Path=Drive1.DriveD、File1.Path=Dir1.PathDir1.Path=Drive1.Drive

以下关于AS_PATH属性的说法中,正确的是()A、AS_PATH是可选传递属性B、向EBGP邻居发布路由时,如果某条路由的AS_PATH包含对端的AS号,则不向对端发送该路由C、向EBGP邻居发布路由时,如果某条路由的AS_PATH包含对端的AS号,则忽略该路由D、所有BGP路由必须包含AS_PATH,即使AS_PATH为空

What command will allow the operator to add the current working directory to the command search path?()A、export PATH=pwdB、export PATH=$PWDC、export PATH=$PATH:pwdD、export PATH=$PATH:$PWD

Given the following LSP configuration, which statement is true?()label-switched-path lsp-xyz { to 10.200.1.1; primary path1; secondary path2; secondary path3; no-cspf; } path path1 { 10.200.10.1 strict; } path path2 { 10.200.20.1 strict; } path path3 { 10.200.30.1 loose; }A、The router will use path1 when it is available and stable.B、The router will use path3 when it is available and stable.C、The router will attempt to establish path2 only when path1 and path3 are down.D、The router will attempt to establish path1 only when path2 and path3 are down.

以下选项中哪个是以作者模式打开已经存在的MMC()。A、MMC path/filename.msc/aB、path/filename.msc/aC、MMC path/filename.mscD、path/filename.msc

填空题Python标准库os.path中用来判断指定路径是否为文件夹的方法是()。

填空题Python标准库os.path中用来判断指定路径是否为文件的方法是()。

单选题使用驱动器列表框Drive1、目录列表框Dir1、文件列表框File1时,需要设置控件的同步,以下能够正确设置两个控件同步的命令是(  )。ADir1.Path=Drive1.PathBFile1.Path=Dir1.PathCFile1.Path=Drive1.PathDDrive1.Drive=Dir1.Path

多选题linux系统中,以下显示结果相同的是()。Aecho The current working path is $PWD.Becho The current working path is $PWD. Echo helloCecho 'The current working path is $PWD.' Echo helloDecho The current working path is `pwd`.Eecho The current working path is $PWD. Echo hello

填空题Python标准库os.path中用来分割指定路径中的文件扩展名的方法是()。

单选题Given the following LSP configuration, which statement is true?()label-switched-path lsp-xyz { to 10.200.1.1; primary path1; secondary path2; secondary path3; no-cspf; } path path1 { 10.200.10.1 strict; } path path2 { 10.200.20.1 strict; } path path3 { 10.200.30.1 loose; }AThe router will use path1 when it is available and stable.BThe router will use path3 when it is available and stable.CThe router will attempt to establish path2 only when path1 and path3 are down.DThe router will attempt to establish path1 only when path2 and path3 are down.