什么是内容%args.\u dict\u?

2024-05-13 18:24:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我被一个语句搞糊涂了,发现in post here

with open('cover.tex','w') as f:
    f.write(content%args.__dict__)

什么是content%args.__dict__?这是Python2.7吗?快速搜索/询问没有帮助。你知道吗

更新:一个建议是%modulo division,因为它如何适用于字符串?你知道吗


Tags: inhereaswithargscover语句open