>>> print("aaaa","bbbb")
aaaa bbbb
>>> print(1, 2, 3)
1 2 3

 

为模块提供别名:

>>> import math as foobar
>>> foobar.sqrt(4)
2.0

 

为函数提供别名:

>>> from math import sqrt as foobar
>>> foobar(4)
2.0

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-09-03
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案