Shader.Find 查找 static function Find (name : string) : Shader Description描述 Finds a shader with the given name. 查找名为name的着色器. Shader.Find can be used to switch to another shader without having to keep a reference to the shader. name is the name you ca…
import os import shutil import re #获取指定文件中文件名 def get_filename(filetype): name =[] final_name_list = [] source_dir=os.getcwd()#读取当前路径 for root,dirs,files in os.walk(source_dir): for i in files: if filetype in i: name.append(i.replace(filetype,'')) fi…
近期写了一个小程序,须要用到时间.遍历作为文件夹的一部分 #!/bin/bash for i in {1..30} do date=`date +%Y/%m/%d -d " $i days ago " ` echo $date done for循环,取近期n天的日期. 核心就是 date=`date +%Y/%m/%d -d " $i days ago " ` 结果. 你能够拼在文件夹后面: 2014/10/10 2014/10/09 2014/10/08 2014…