Namespaces with Module Imports

后端 未结 5 1261
Happy的楠姐
Happy的楠姐 2020-11-27 18:06

I am learning Python and am still a beginner, although I have been studying it for about a year now. I am trying to write a module of functions which is called within a main

5条回答
  •  野性不改
    2020-11-27 18:30

    Inside the module you could simply define from math import pi, which would only import pi from math but not the entire math module.

提交回复
热议问题