Ad
3: 2017-09-04 (月) 08:19:46 njf ソース バックアップ No.3 を復元して編集 現: 2017-09-05 (火) 14:40:09 njf ソース 編集
Line 3: Line 3:
 testStr = "a,b,c,d,e,f"  testStr = "a,b,c,d,e,f"
 + 
 print testStr.split(",")  print testStr.split(",")
Line 13: Line 13:
 testStr = "a,b,c,d,e,f"  testStr = "a,b,c,d,e,f"
 + 
 print testStr.split(",",2)  print testStr.split(",",2)
Line 26: Line 26:
 testStr = "123456789"  testStr = "123456789"
 + 
 print list(testStr)  print list(testStr)
Line 37: Line 37:
 testStr = "123456789"  testStr = "123456789"
 + 
 for c in testStr:  for c in testStr:
     print c      print c
Line 52: Line 52:
 9  9
-しかし、頻繁に大きな文字列を編集するならリストの方が高速なので、その場合に役立つことがあります。+しかし、頻繁に大きな文字列を編集するならリストの方が高速なので、その場合に文字列のリストへの変換が役立つことがあります。


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 2672, today: 2, yesterday: 0
MenuBar
広告

ログイン

ユーザー名:


パスワード:





パスワード紛失

Portuguese | English | German | Greek | Japanese | Korean | Russian | T-Chinese top
NJF