27 lines
460 B
Python
27 lines
460 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
# @File : QR.py
|
||
|
# @Author : len
|
||
|
# @Time : 2024/1/14 15:05
|
||
|
|
||
|
def len_QR_jiankuohao(text):
|
||
|
str_result = ""
|
||
|
flag = False
|
||
|
for i in text:
|
||
|
print(i)
|
||
|
if i in ">":
|
||
|
flag = False
|
||
|
|
||
|
if flag:
|
||
|
str_result += i
|
||
|
|
||
|
if i in "<":
|
||
|
flag = True
|
||
|
return str_result
|
||
|
|
||
|
|
||
|
|
||
|
# text = "5agfaf22rr<E,3>fafa"
|
||
|
text = "@ERQRSFGAGA<AFAFAFAFAf>"
|
||
|
str = len_QR_jiankuohao(text)
|
||
|
|
||
|
print(str)
|