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)
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 [...
How to ssh to a server using private key
ssh -i /path/to/private_key.pem username@server_ip * issue: "WARNING: UNPROTECTED PRIVATE KEY FILE!" solution: sudo c...
http 和 https
区别: 1. HTTP 明文传输 ,数据都是未加密的,安全性较差,HTTPS(SSL+HTTP) 数据传输过程是 加密 的,安全性较好。 2. 使用 HTTPS 协议需要到 CA(Certificate Authority,数字证书认证机构) 申请证书,一般免费证书较少,因而需要...
No comments:
Post a Comment