You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用testRigor工具生成合规的巴西唯一CPF?

如何在testRigor中生成合规的巴西CPF(带格式或无分隔符)

你之前使用的generate unique cpf是通用CPF生成命令,无法保证符合巴西的格式与校验标准。testRigor内置了针对巴西CPF的专用生成规则,改用以下命令即可解决问题:

  • 生成带标准分隔符的合规巴西CPF(格式:xxx.xxx.xxx-xx):
    使用如下完整命令:

    generate unique brazilian cpf formatted, then enter in "CPF" and save as "generatedCpf"
    
  • 生成无分隔符的纯数字合规巴西CPF(格式:xxxxxxxxxxx):
    使用如下完整命令:

    generate unique brazilian cpf unformatted, then enter in "CPF" and save as "generatedCpf"
    

上述命令生成的CPF会自动遵循巴西CPF的校验算法(包含两位校验码的合规计算),确保生成的是真实有效的唯一巴西CPF。

内容的提问来源于stack exchange,提问作者Antonio Ortiz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 04:05:56