Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T #11

Open
QGB opened this issue Jan 25, 2020 · 2 comments
Open

T #11

QGB opened this issue Jan 25, 2020 · 2 comments

Comments

@QGB
Copy link
Owner

QGB commented Jan 25, 2020

输出列表时,最好 数字 在前,不确定长度的长文本最后,方便格式化

@QGB
Copy link
Owner Author

QGB commented Feb 11, 2020

T.tab
T.space

@QGB
Copy link
Owner Author

QGB commented Apr 15, 2021

-------> U.len(lba,de,T.charset)
Out[92]: [98, 22, 120]

In [93]: [i for i in lba if i[1]!=32]
Out[93]:
[[unicode-internal      , 33,   !"#$%&'()*+,-./:;<=>?@[\]^`{|}~],
 [utf-16-le             , 33,   !"#$%&'()*+,-./:;<=>?@[\]^`{|}~],
 [utf-16-be             , 33,   !"#$%&'()*+,-./:;<=>?@[\]^`{|}~],
 [utf-7                 , 30,  !"#$%&'()*+,-./:;<=>?@[]^`{|}],
 [utf-32-le             , 33,   !"#$%&'()*+,-./:;<=>?@[\]^`{|}~],
 [utf-32-be             , 33,   !"#$%&'()*+,-./:;<=>?@[\]^`{|}~]]




In [109]: dt={}
     ...: de={}
     ...: lt=[]
     ...: le=[]
     ...: for c in T.gcharset:
     ...:     try:
     ...:         dt[c]=b.decode(c)
     ...:         lt.append([c,b.decode(c)] )
     ...:     except Exception as e:
     ...:         de[c]=e
     ...:         le.append([c,e])
     ...:
     ...:
C:\QGB\Anaconda3\Scripts\ipython:7: DeprecationWarning: unicode_internal codec has been deprecated

In [110]: U.len(lt,le)
Out[110]: [58, 62]


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant