差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
programming:python:rfc5952 [2021/05/22 18:50]
yuki 削除
— (現在)
ライン 1: ライン 1:
-====== RFC5952 ====== 
-文字列とバイナリ表現の相互変換用のスクリプト。 
- 
-こんな感じで使う。 
- 
-  >>>​ import rfc5952 
-  >>>​ binary = '​\x20\x01\x0d\xb8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'​ 
-  >>>​ rfc5952.inet6_ntoa(binary) 
-  '​2001:​db8::​1'​ 
-  >>>​ string = "​2001:​db8:​1f1f:​90::​82"​ 
-  >>>​ rfc5952.inet6_aton(string) 
-  ' \x01\r\xb8\x1f\x1f\x00\x90\x00\x00\x00\x00\x00\x00\x00\x82'​ 
- 
-Bitbucketで公開してます。 
- 
-  * https://​bitbucket.org/​ainoniwa/​rfc5952/​src/​dcb12192d35f730d843f2922e0d0b75f702d2092/​rfc5952.py 
  
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0