将姓名转换为电话号码 (utils.name_to_phone)

声明

电话号码 = utils.name_to_phone(姓名)

参数及返回值

  • 姓名
    • 文本型,需要转换为电话的文本
  • 电话号码
    • 图片对象,返回生成电话号码

说明

本函数与 utils.phone_to_name对应,可以互相转换

示例

  • 姓名与号码互转实例 ```lua name = utils.phone_to_name('13888910011') phone = utils.name_to_phone(name)

print(name) print(phone) ```

powered by GitbookFile Modify: 2021-03-27 23:14:19

results matching ""

    No results matching ""