fork download
  1. class A():
  2. def __init__(self):
  3. from math import cos, sin, sqrt
  4. self.cos = cos
  5. self.sin = sin
  6. self.sqrt = sqrt
  7.  
  8. def a(self):
  9. print(self.cos, self.sin, self.sqrt)
  10.  
  11.  
  12.  
  13. A().a()
Success #stdin #stdout 0.02s 8736KB
stdin
Standard input is empty
stdout
<built-in function cos> <built-in function sin> <built-in function sqrt>