小编Gan*_*hat的帖子

Python导入空文件夹

/tmp# mkdir foobar
/tmp# python3
Python 3.4.3 (default, Nov 28 2017, 16:41:13) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import foobar
>>> 
Run Code Online (Sandbox Code Playgroud)

为什么python允许导入任何随机(包括空)目录?那么,在上面的快照中,我是导入包还是模块?是的,“foobar”是一个文件夹,但导入目标始终是一个模块(.py 文件),不是吗?

python python-3.x

4
推荐指数
1
解决办法
731
查看次数

git send-email 发送邮件失败

我正在尝试发送 git 补丁以供上游社区审核;但接收方没有收到消息;

我尝试将“ --to”更改为我的私人电子邮件 ID 之一,但即使如此,我的私人邮箱也没有收到此信息;

命令:

git send-email --no-chain-reply-to --from "Ganapathi Bhat <xxx@gmail.com>" --to linux-wireless@vger.kernel.org my_patch.patch
Run Code Online (Sandbox Code Playgroud)

输出:

Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls hello=yyy.yyy.com port=587 at /usr/lib/git-core/git-send-email line 1506
Run Code Online (Sandbox Code Playgroud)

命令:

git config -l

输出:

user.email=xxx@gmail.com
user.name=Ganapathi Bhat
sendemail.smtpencryption=tls
sendemail.smtpserver=smtp.gmail.com
sendemail.smtpuser=xxx@gmail.com
sendemail.smtpserverport=587
Run Code Online (Sandbox Code Playgroud)

该补丁应交付给社区进行审核,并且应出现在以下列表中: https ://patchwork.kernel.org/project/linux-wireless/list/

git smtp sendmail smtpclient git-send-email

3
推荐指数
1
解决办法
3122
查看次数

标签 统计

git ×1

git-send-email ×1

python ×1

python-3.x ×1

sendmail ×1

smtp ×1

smtpclient ×1