2024년 1월 10일 수요일

"File "/usr/bin/repo", line 51 def print(self, *args, **kwargs): ^ SyntaxError: invalid syntax" 에러 해결 방법은?

이 에러는 Python 2에서 Python 3의 문법을 사용했기 때문에 발생하는 것으로 보입니다1. Python 2에서는 print가 함수가 아니라 문장이므로, Python 3에서처럼 *args**kwargs 인자를 사용할 수 없습니다1.

댓글 없음:

댓글 쓰기

우분투 NFS 설정

* 서버 설정 apt-get install nfs-common nfs-kernel-server rpcbind /etc/exports /home/xyz 192.168.0.X(rw,sync,no_root_squash,no_subtree_check)...