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)
What is huggingface?
1. 一个开源的AI社区,提供模型,数据集,一些工具等 2. Spaces 应用:通过网页端展示自己模型的输入输出和别的交互 3. Gradio:给任意python函数加上UI页面的库,用于页面展示 4. 几个重要的库:Transformer / Datasets / Evalu...
Issue about `GLIBCXX_3.4.29'
Issue: libstdc++.so.6: version `GLIBCXX_3.4.29' not found Solution: sudo add-apt-repository ppa:ubuntu-toolchain-r/test # Ignore if not...
Dockerfile构建速度过慢,更换国内源方法 (apt / pip)
apt方法: 在Dockerfile中添加如下两句代码: RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean * ...
No comments:
Post a Comment