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)
http 和 https
区别: 1. HTTP 明文传输 ,数据都是未加密的,安全性较差,HTTPS(SSL+HTTP) 数据传输过程是 加密 的,安全性较好。 2. 使用 HTTPS 协议需要到 CA(Certificate Authority,数字证书认证机构) 申请证书,一般免费证书较少,因而需要...
What is huggingface?
1. 一个开源的AI社区,提供模型,数据集,一些工具等 2. Spaces 应用:通过网页端展示自己模型的输入输出和别的交互 3. Gradio:给任意python函数加上UI页面的库,用于页面展示 4. 几个重要的库:Transformer / Datasets / Evalu...
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 [...
No comments:
Post a Comment