- 博客(7)
- 收藏
- 关注
原创 python包和文件夹的区别
#server.pyfrom package.modb import funbfrom directory.moda import funafuna()funb()import package.modbimport directory.modadirectory.moda.funa()package.modb.funb()python3中,有没有__init__.py...
2020-02-26 14:46:28 3759 2
原创 pycharm项目根目录作为Python导包路径的说明
之前知道pycharm会将项目根目录作为Python导包路径,今天想看看官方文档说明,如下:Source rootscontain the actual source files and resources. PyCharm uses the source roots as the starting point for resolving importshttps://www.jetb...
2020-02-26 11:53:04 3320
转载 pycharm .idea文件夹的作用
What is the .idea folder?FOLLOWDaria DovzhikovaUpdatedFebruary 05, 2020 05:59The.ideafolder (hidden on OS X) in the solution root contains IntelliJ’s project specific settings files. Thes...
2020-02-26 11:13:12 3718
原创 Python查看第三方库、包的所有可用版本,历史版本
第一:https://my.oschina.net/linbingfeng/blog/885485第二:利用pycharm安装第三方库是勾选specify version,就能看到第三方库的各个版本了第三:利用yolk3k,这是Python对应的版本,官方文档:https://pypi.org/project/yolk3k/安装:pip install --upg...
2020-02-23 22:19:08 9117
转载 zsh 像bash一样提示未安装的软件
This feature is provided by thecommand-not-foundpackage. Ubuntu installs it by default, and makes it active by default in bash but not in zsh. Just add this line to your~/.zshrc:. /etc/zsh_comm...
2020-02-22 12:21:47 771 1
原创 nginx配置直接下载文件
location配置, location ~ ^/file { if ($request_filename ~* ^.*?\.(txt|doc|pdf)$){ add_header Content-Disposition: 'attachment'; add_header Content-Type a...
2020-02-20 23:47:51 8308 1
原创 Ubuntu 16 BAD PASSWORD: it does not contain enough DIFFERENT characters
vultr的服务器不能设置6位的密码,提示:BAD PASSWORD: it does not contain enough DIFFERENT characters但是阿里云的服务器能设置,搜索了一下没看到太直接的用信息,大概是修改/etc/pam.d/common-password这个文件,自己尝试了一下不对,索性直接把阿里云的配置拷贝过来,再次尝试解决。贴一下配置文...
2020-02-04 14:18:29 2652
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人