def temp_filename(directory, suffix):
temp_name = next(tempfile._get_candidate_names())
filename = os.path.join(directory, temp_name + suffix)
return filename
# run a 2-ary function on two things -- loop over elements pairwise if the
# things are lists
评论列表
文章目录