摘要:
1. list的元素为Integer 【代码实例1】 public static void main(String[] args) { List list = new ArrayList(); int maxNum = 1000000; for (int i = 0; i list = new Ar 阅读全文
摘要:
今天,得到一个里面都是图片的文件夹,但是图片都没有后缀,因此想用Pythton批量地为所有的文件加上".jpg"的后缀,代码如下: coding:utf 8 重命名文件 import os path = 'D:\pics' for file_path in os.listdir(path): if 阅读全文