1,help()查看函数功能以及用法
2,def exchange(dollar,rate=6.32):
''' 功能:汇率转换,美元 -> 人民币
参数:
- dollar 美元数量
- rate 汇率,默认值是 6.32 (2022-03-08)
返回值:
- 人民币的数量
’‘’
return dollar * rate
3,def times(s:str,n:int) -> str:
return s * n
4,times.__name__
times.__annotations__
times.__doc__