- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 用Python按照文件的名字中包含的数字排序出文件
使用Python按照文件的名字中包含的数字排序出文件原来的样式:改变后的样式:看看步骤:原来的样式:file_list = [‘第10周成绩.xlsx’, ‘第11周成绩.xlsx’, ‘第12周成绩.xlsx’, ‘第13周成绩.xlsx’, ‘第14周成绩.xlsx’, ‘第15周成绩.xlsx’, ‘第16周成绩.xlsx’, ‘曲周职教大第17周成绩.xlsx’, ‘第18周成绩.xlsx’, ‘第19周成绩.xlsx’, ‘第1周成绩.xlsx’, ‘第20周成绩.xlsx’, ‘第21周成绩
2020-08-28 11:22:43
1323
jlayer-1.0.1.jar
if(!Thread.currentThread().isInterrupted()) {
System.out.println(!Thread.currentThread().isInterrupted());
//声明一个File对象
File mp3 = new File("E:\\Download\\10092.mp3");
//创建一个输入流
FileInputStream fileInputStream;
try {
fileInputStream = new FileInputStream(mp3);
//创建一个缓冲流
BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);
//创建播放器对象,把文件的缓冲流传入进去
player = new Player(bufferedInputStream);
//调用播放方法进行播放
player.play();
} catch (FileNotFoundException e) {
e.printStackTrace();
}catch (JavaLayerException e) {
e.printStackTrace();
}
}
2020-07-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人