以下是我的回溯错误:
Traceback (most recent call last):
File "setup_rouge.py", line 7, in <module>
from files2rouge import settings
File "/home/cerdas/files2rouge/files2rouge/__init__.py", line 2, in <module>
from files2rouge.files2rouge import main
File "/home/cerdas/files2rouge/files2rouge/files2rouge.py", line 17, in <module>
from files2rouge import utils
File "/home/cerdas/files2rouge/files2rouge/utils.py", line 14
print(*args, **kwargs)
^
SyntaxError: invalid syntax
当我尝试运行此代码时发生错误:
def tee(saveto, *args, **kwargs):
"""Mimic the tee command, write on both stdout and file
"""
print(*args, **kwargs)
if saveto is not None:
print(file=saveto, *args, **kwargs)
我已经阅读并搜索了类似的问题,但是我仍然无法解决该错误。谢谢
答案 0 :(得分:-1)
尝试用textView.snp.makeConstraints{ (maker) in maker.height.greaterThanOrEqualTo(xxx) }
代替print(args, kwargs)