# subprocess - Subprocesses with accessible I/O streams # # For more information about this module, see PEP 324. # # Copyright (c) 2003-2005 by Peter Astrand <astrand@lysator.liu.se> # # Licensed to PSF under a Contributor Agreement. # See http://ww
import javax.swing.JFileChooser; import org.eclipse.swt.internal.win32.TCHITTESTINFO; public class test { public static void main(String[] args) { JFileChooser f = new JFileChooser(); int result = f.showOpenDialog(null);//执行文件选择窗口 if (result==f.APPRO
os模块 1.os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 import os print(os.getcwd()) #C:\Users\Administrator\PycharmProjects\PYL\temp_file 2.os.chdir() 改变当前脚本工作目录;相当于shell下cd import os print(os.getcwd()) #C:\Users\Administrator\PycharmProjects\PYL\temp_file o