Zephyr_Blog
Translate
Python ---- list all the files in a directory
Code:
import os for (root, dirs, file) in os.walk(path): for f in file: if '.txt' in f: print(f)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Kafka - Failed with result 'exit-code'
Error: Failed with result 'exit-code' Solution: 1) Open the file meta.properties . In my case, it was located at...
Dynamic routes in next.js
1. Dynamic Segment A Dynamic Segment can be created by wrapping a folder's name in square brackets: [folderName]. For example, [id] or [...
Zephyr - Study: JavaScript (2)
1. 内建对象: 包括 object function array 等 2. 数组 Array 也是一个对象 1)创建数组对象:var arr = new Array(); 2)添加元素:数组[索引] =...
No comments:
Post a Comment