字符串转整数型

for p in verify_code.split("|"):   # 179,277|109,161   先循环,再切割
x = int(p.split(",")[0]) # 字符串转整数型
y = int(p.split(",")[1])
posted @ 2023-08-11 22:55  严永富  阅读(4)  评论(0)    收藏  举报