1-intro-to deepleanring and computer visionk.MKV
2.Kaggle Deep Learning - YouTube.MP4
Convolutional Neural Networks - Fun and Easy Machine Learning - YouTube.MP4
Convolutional Neural Networks - The Math of Intelligence (Week 4)YouTube.MKV
Introduction to Deep Learning- What Are Convolutional Neural Networks- YouTube.MP4
Kaggle Deep Learning 3 - YouTube.MP4
Kaggle Deep Learning 4 - YouTube.MP4
Kaggle Deep Learning 5 Data Augmentation - YouTube.MP4
Kaggle Deep Learning 6 - YouTube.MP4
Kaggle Deep Learning 7.mp4
Kaggle Deep Learning 8 - YouTube.MP4
这些是需要排序的文件。包含数字的文件名(本例中为3)Kaggle Deep Learning 3-YouTube.MP4网站应更名为3 Kaggle Deep Learning-YouTube.MP4网站。不包含任何数字的文件名或开头包含数字的文件不需要重命名。你知道吗
我已经写了下面的代码,直到现在,我被卡住了
for f in os.listdir():
filename,extension = os.path.splitext(f))
简而言之,我希望这些文件在我的目录中看起来像这样。。你知道吗
1-intro-to deepleanring and computer visionk.MKV
2 Kaggle Deep Learning - YouTube.MP4
3 Kaggle Deep Learning - YouTube.MP4
4 Kaggle Deep Learning - YouTube.MP4
5 Kaggle Deep Learning Data Augmentation - YouTube.MP4
6 Kaggle Deep Learning - YouTube.MP4
7 Kaggle Deep Learning .mp4
8 Kaggle Deep Learning - YouTube.MP4
Convolutional Neural Networks - Fun and Easy Machine Learning - YouTube.MP4
Convolutional Neural Networks - The Math of Intelligence (Week 4)YouTube.MKV
Introduction to Deep Learning- What Are Convolutional Neural Networks-
YouTube.MP4
这不是一个干净的例子,但它可能会帮助你,运行这个文件夹内,你想重命名的文件。你知道吗
注意:在运行代码之前,请备份您的内容。。。你知道吗
经过一番努力终于解决了这个问题,这段代码在很大程度上解决了我的问题。你知道吗
将每个字符串(文件名)拆分为一个字符是关键
相关问题 更多 >
编程相关推荐