- バックアップ一覧
- ソース を表示
- Python/??絖??? は削除されています。
- 1 (2017-04-05 (水) 04:45:38)
- Python?≫???iki
- Python
- Python/MySQL
- Python/urllib
- Python/?????吾?с?????????
- Python/紊????????違????絎?茵??
- [[Python/?潟???潟?????ゃ??]
- Python/?潟?潟?????
- [[Python/?????????若??]
- Python/?ヤ??紙?????
- [[Python/???<?ゃ??]
- [[Python/?<?≪??]
- Python/??絖????
Unicode †
?堺? †
- ??unicode???????????????違??UTF-8??絖??潟?若??????膈?????Unicode????絖??????????ョ?????с????
- python?у?初?????????????????ゃ?????????≪?????宴?若?激?с?括??с????unicode???с???ュ?阪?????????????????????????祉?????
- python?ф?ユ??????宴???翫????????????nicode?????????????????♂?
- unicode?????<?純????
- encode( [??絖??潟?若??] ) ... unicode?????劫?????絖??潟?若???????ゃ????鐚???tr??鐚??????潟?潟?若??
- decode() ... ?劫?????絖??潟?若???????ゃ????鐚???tr??鐚??????潟?若??????nicode???????
- ??絖??潟?若???????ャ???????????翫????????????絖??潟?若??????絎??????????????宴?若?鴻?с???潟?潟?若?????????????違????????絮??≪?с????encode??str??ys.getdefaultencoding()?у???с?????????????????????潟?潟?若???c?潟?違?????ゃ??篏睡?
UnicodeEncodeError? ???冴???????????? †
Python?ф?ユ??????????????????????????????若??????冴????
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-12: ordinal not in range(128)
???????????若???冴????????????札筝???茵???
- unicode?? -> str??
ustr.encode('utf_8')
??絖??潟?若???ゅ? †
??絖??????? ?∽?遺?荀 †
- ??絖??? ?? ?医?
- int(str)
- float(str)
- long(str)
- complex(str)
- ?劫???絖??ゅサ
- rstrip() ... 茵???????醇??絖????????ゃ?????絖?????絎????????翫??? '\t', '\n', '\r', '\v', '\f' ???ゅサ????????
- ??絖????????鴻???????
- split(ch) ... ??絎???絖??у?阪???c??腟????????鴻??????????
- ??絖?????窪絲??????喝???
- ljust(width[, fillchar]) ... width ???激???????ゅ窪絲?????????絖?????菴??????????c?潟?違??? fillchar ?ф??絎?????????絖?(???????????с???鴻???若?刻???篏帥???????width ?? len(s) ??????絨?????翫??????????絖?????菴?????????
- rjust(width[, fillchar]) ... width ???激???????ゅ勀?????????絖?????菴??????????c?潟?違??? fillchar ?ф??絎?????????絖?(???????????с???鴻???若?刻???篏帥???????width ?? len(s) ??????絨?????翫??????????絖?????菴?????????
Tips †