![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
a1017611124
这个作者很懒,什么都没留下…
展开
-
Pycharm 安装PyQt5所踩的坑
安装PyQt5找不到Designer.exe原创 2022-03-25 11:18:46 · 1257 阅读 · 0 评论 -
python打印输出‘\n’
python打印输出‘\n’用repr(str)str = 'slll\nsdlfaga\naflsg\n'print(str)print(repr(str))输出:slllsdlfagaaflsg‘slll\nsdlfaga\naflsg\n’原创 2021-03-25 15:56:10 · 5583 阅读 · 1 评论 -
python获取文件夹下的目录并计算该目录的大小
import osfrom os.path import join, getsize# dir = r"C:\Users\10176\Desktop\1"dir = 'C:\\Program Files (x86)'''''''def get_dir_size(dir): size = 0 for root, dirs, files in os.walk(dir): size += sum([getsize(join(root, name)) for name原创 2021-03-25 14:15:17 · 1467 阅读 · 0 评论