由于测试过程中会用到银行卡号信息,就简单写一个银行卡号自动生成的Python脚本
# -*- coding: utf-8 -*- name = '工商银行' def phone_num(name): bank = [] if name == '建设银行': for i in range(6227007201360049787, 6227007201360049987, 1): bank.append(i) return bank if name == '招商银行': for i in range(6215593700011926793, 6215593700011926993, 1): bank.append(i) return bank if name == '工商银行': for i in range(6212261001080775106, 6212261001080799999, 1): bank.append(i) return bank if name == '中国银行': for i in range(6217856200015168391, 6217856200015168591, 1): bank.append(i) return bank