In Python, what does '<function at …>' mean?
问题 What does <function at 'somewhere'> mean? Example: >>> def main(): ... pass ... >>> main <function main at 0x7f95cf42f320> And maybe there is a way to somehow access it using 0x7f95cf42f320 ? 回答1: You are looking at the default representation of a function object. It provides you with a name and a unique id, which in CPython happens to be a memory address. You cannot access it using the address; the memory address is only used to help you distinguish between function objects. In other words,