Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到警告:Assignment to reserved built-in symbol: file 在这个命令上:
Assignment to reserved built-in symbol: file
file=open(fileName,'r')
有什么具体原因吗?
file是 Python 中内置的全局名称。它警告你不要重新定义它。
file