Python文档字符串注释,大于或小于符号不显示

问题描述

我正在使用文档字符串注释Python代码。注意,这只是一个例子,

def credit_bonus(self,num_purchases: int,total_spend: float)->int:
    '''
    Calculates eligible and additional credit bonus for a customer,compared to previous
    yearly spends,and number of previous purchases.

    Additional credit ranking of 2,if current number of purchases > previous purchaces,and current spend >= 95% previous spend.

    Return: customer's credit ranking
    '''

    ....

    return credit_rank

在VSCode中显示该功能的注释时,将其悬停在另一个模块中的该函数上时,将不显示大于号。我已经尝试过各种转义字符>,但到目前为止没有任何效果。

是否可以用Python文档字符串支付?

此外,我知道这不是表演的障碍,也不是强制性的,只是一个小小的方便,最终将导致键入,而不是大于。

njc,谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)