2011-08-18 00:34:16 +04:00
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> TinyPy <20> <20> <> <EFBFBD> <EFBFBD> ⪨ <20> <> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 樨 <20> ࠡ<> <E0A0A1> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
1. <20> <> <EFBFBD> ⠪<> <E2A0AA> TinyPy <20> 祬 <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD>
TinyPy - <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Python-<2D> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> 몠, ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (Phil Hassey), <20> ⫨<EFBFBD> <E2ABA8> <EFBFBD> 騩<EFBFBD> <E9A8A9> <20> 祭<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 訬<EFBFBD> ࠧ<> <E0A0A7> ࠬ<EFBFBD> : <20> 롮 <20> <> 権
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 樨 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ࠧ<> <E0A0A7> <20> ᯮ<EFBFBD> <E1AFAE> 塞<EFBFBD> <EFA5AC> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> ।<EFBFBD> <E0A5A4> <EFBFBD> <EFBFBD> 64 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
<20> <> <EFBFBD> ࠧࠡ<E0A0A7> ⪥ <20> ਫ<EFBFBD> <E0A8AB> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> 㣨<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 樮<EFBFBD> <E6A8AE> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> ⥬<EFBFBD> <E2A5AC>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 㯥<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 쭮 <20> <> ப<EFBFBD> <E0AEAA> <20> 롮<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> -<2D> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> ।<EFBFBD> <E0A5A4> <EFBFBD> ࠧࠡ<E0A0A7> ⪨ <20>
ᠬ<EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> ६<EFBFBD> <E0A5AC> <EFBFBD> <20> <> <EFBFBD> <20> <> ࠭<EFBFBD> 祭 FASM. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> ।<EFBFBD> <E0A5A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> ணࠬ<E0AEA3> <E0A0AC> <20> ᠬ<> <E1A0AC> <20> <> <EFBFBD> ⥬<EFBFBD> <20> <> ⠪<> <E2A0AA> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 砥<EFBFBD> <E7A0A5> <EFBFBD> <20>
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ࠭<EFBFBD> <20> <> 몥, <20> <> <EFBFBD> Python, <20> <> <EFBFBD> <EFBFBD> 蠥<EFBFBD> <20> ਢ<EFBFBD> <E0A8A2> <EFBFBD> <EFBFBD> ⥫쭮<E2A5AB> <ECADAE> <EFBFBD> <20> <> <EFBFBD> ⥬<EFBFBD> <20> <> <EFBFBD>
<EFBFBD> <EFBFBD> <EFBFBD> 짮<EFBFBD> <EFBFBD> ⥫<EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <20> <> <20> ணࠬ<E0AEA3> <E0A0AC> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> <20> <> <20> <> ᥬ<EFBFBD> <E1A5AC> <EFBFBD> <EFBFBD> <EFBFBD> .
TinyPy <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> : <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ⥫쭠<E2A5AB> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ᠭ<EFBFBD> <20> <> ᠬ<> <E1A0AC>
Python, <20> <20> <> ⠫쭠<E2A0AB> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> - <20> <> C, <20> <> 室<EFBFBD> <E5AEA4> <EFBFBD> ⥪<> <E2A5AA> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 200 <20> <> .
<EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 樨 <20> 㦭<EFBFBD> ⮫쪮 <20> ⠭<EFBFBD> <E2A0AD> <EFBFBD> ⭠<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⥪<EFBFBD> libc. <20> <> <20> <> <EFBFBD> <20> ᯮ<EFBFBD> <E1AFAE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> ᥣ<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ⪮<EFBFBD> <20> 㭪権 (vsnprintf/vsprintf, malloc/memcpy/memmove/free,
fopen/fread/fwrite/fclose).
<20> <20> ⮣<EFBFBD> ࠡ<> <E0A0A1> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> TinyPy <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <> <E1ABA5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> ⥩:
1. <20> <> <EFBFBD> <EFBFBD> ᠭ<EFBFBD> <E1A0AD> Makefile <20> <> <EFBFBD> ᡮન <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> GCC <20> <20> ᯮ<EFBFBD> 짮<EFBFBD> <ECA7AE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
menuetlibc.
2. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> menuetlibc <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> 㭪権 vsnprintf/vsprintf.
3. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 祭<EFBFBD> <E7A5AD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⥪<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> ࠡ<> <E0A0A1> <EFBFBD> <20> <20> <> <EFBFBD> ᮫<EFBFBD> <E1AEAB> .
4. <20> <20> <> <EFBFBD> <EFBFBD> 筮, <20> ⫮<EFBFBD> ࠧ<> <E0A0A7> <EFBFBD> <EFBFBD> ࠧ<EFBFBD> <E0A0A7> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> (<28> <> <EFBFBD> <20> <> <20> <> <EFBFBD> <20> ⮣<EFBFBD> !).
2. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> TinyPy.
2.1. <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ꥪ<EFBFBD> <20> <20> ।<EFBFBD> TinyPy <20> ।<EFBFBD> ⠢<EFBFBD> <E2A0A2> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 16-<2D> <> <EFBFBD> ⮢<EFBFBD> <E2AEA2> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ன tp_obj.
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 4 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⨯ , <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 祭<EFBFBD> <E7A5AD> <20> <> <EFBFBD> <E1ABA5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 12 <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> .
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 㯭<EFBFBD> <> <E1ABA5> <EFBFBD> 騥 ⨯ <> : TP_NONE, TP_NUMBER, TP_STRING, TP_DICT, TP_LIST,
TP_FNC, TP_DATA.
TP_NONE - ᮮ⢥<E1AEAE> <E2A2A5> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ⢥<EFBFBD> <E2A2A5> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ꥪ<EFBFBD> <EAA5AA> None. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ᪠<> <E1AAA0> <EFBFBD> <EFBFBD>
<20> <> 祣<EFBFBD> .
TP_NUMBER - <20> <> , <20> ࠭<EFBFBD> <E0A0AD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> float. <20> <20> <> <20> ⫨砥<E2ABA8> <E7A0A5> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 襣<EFBFBD>
楫<> <E6A5AB> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , 祬 <20> <> 10^(-6), <20> <> <EFBFBD> <20> <> <EFBFBD> ⠥<EFBFBD> <E2A0A5> <EFBFBD> 楫<> <E6A5AB> , <20> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> 뢮<EFBFBD> <EBA2AE> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> 楫<> <E6A5AB> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> ⮬<EFBFBD> ⨯ <> <20> ⭮<EFBFBD> <E2ADAE> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᪨<EFBFBD> True <20> False.
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 䬥<EFBFBD> <E4ACA5> <EFBFBD> <EFBFBD> ᪨<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 樨 +,-,*,/,%, <20> <> ⮢<EFBFBD> <E2AEA2> << <20> >>, <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᪨<EFBFBD>
|, &.
<20> ਬ<EFBFBD> <E0A8AC> :
print(2+2*2, 7/3, (-7)%3, 1==True, 0==False)
<20> 뢮<EFBFBD> <EBA2AE> <EFBFBD> :
6 2.333333 -1 1 1
<20> <> <EFBFBD> <EFBFBD> ⨬ <20> ࠧ<EFBFBD> , <20> <> <EFBFBD> print <> <EFA2AB> <EFBFBD> <EFBFBD> <EFBFBD> <20> 㭪樥<E3ADAA> (<28> <> <EFBFBD> <20> Python 3), <20> <> <20> <> <EFBFBD> <EFBFBD> <20> <> ࠬ<EFBFBD> <E0A0AC> <EFBFBD> <EFBFBD>
<20> <> 易⥫쭮 㪠<> 뢠<EFBFBD> <EBA2A0> <20> <> <E1AAAE> <EFBFBD> <EFBFBD> .
TP_STRING - <20> <> ப<EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> : <20> <EFBFBD> ઠ <20> 宦<EFBFBD> <E5AEA6> <EFBFBD> <EFBFBD> <EFBFBD> ("str1" in "str2"), <20> १<EFBFBD> s[:b], s[a:b],
s[a:], <20> 㭪樨 len, index, join, split, find, strip, replace.
TP_DICT - <> <E1ABAE> <EFBFBD> <EFBFBD> , <20> <> <20> <> <20> <> <EFBFBD> <EFBFBD> 樠⨢<E6A8A0> <E2A8A2> <EFBFBD> <20> <> <EFBFBD> ᨢ. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⮢ <20> <> 㣮<EFBFBD> <E3A3AE> <> <E1ABAE> <EFBFBD> <EFBFBD> . <20> <> ॡ<EFBFBD> <E0A5A1> <20> <> <20> ᥬ <20> <> <EFBFBD> 砬 <20>
㤠<> <E3A4A0> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⮢ <20> <> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⠪<> <E2A0AA> <> <EFA2AB> <EFBFBD> <EFBFBD> <EFBFBD> 㤮<> <E3A4AE> <EFBFBD> <EFBFBD> ᯮᮡ<E1AFAE> <E1AEA1>
<20> ।<EFBFBD> ⠢<EFBFBD> <E2A0A2> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ꥪ⮢, <20> <20> <> <EFBFBD> ⭮<EFBFBD> <E2ADAE> <EFBFBD> , <20> d <> <E1ABAE> <EFBFBD> <EFBFBD> , <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> d.key <20>
d['key'] ࠢ<> <E0A0A2> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <20> ⮬ TinyPy <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> JavaScript.
TP_LIST - ᯨ᮪. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> : <20> <> ॡ<EFBFBD> <E0A5A1> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⠬ (for el in list),
<20> 㭪樨 len, append/appendx, extend, insert/insertx, pop, find, index, sort.
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> 㭪<EFBFBD> <E3ADAA> <EFBFBD> range. reverse() <20> <> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
TP_FNC - <20> 㭪<EFBFBD> <E3ADAA> <EFBFBD> . <20> 뢠<EFBFBD> <EBA2A0> 2 ⨯ <> <E2A8AF> - <20> <> <EFBFBD> 筠<EFBFBD> <20> 㭪<EFBFBD> <E3ADAA> <EFBFBD> <20> <20> <> ⮤, <20> ⫨<EFBFBD> <E2ABA8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> 浪<EFBFBD> <EFA4AA> <20> 맮<EFBFBD> <EBA7AE> .
TP_DATA - <20> <> <EFBFBD> <EFBFBD> ७<EFBFBD> <E0A5AD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> TinyPy.
2. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> TinyPy <20> <20> ࠢ<EFBFBD> <E0A0A2> <EFBFBD> <EFBFBD> <EFBFBD> <20> "<22> <> <EFBFBD> <EFBFBD> 訬" Python
"what tinypy won't be:
- a full implementation of Python;
- totally compatible with Python"
"roadmap.txt", tinypy sources
<20> <> <EFBFBD> ⠪<EFBFBD> <E2A0AA> <EFBFBD> <20> <> 몠 TinyPy <20> 祭<EFBFBD> <20> <> 宦 <20> <> Python, <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ⢥<EFBFBD> <E2A2A5> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Python <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> :
- <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> ᮯணࠬ<E0AEA3> ;
- ᨭ⠪<E1A8AD> <E2A0AA> <EFBFBD> <EFBFBD> ᪨<EFBFBD> "<22> <> <EFBFBD> <EFBFBD> <EFBFBD> " <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFA2AB> <EFBFBD> <EFBFBD> ᯨ<E1AFA8> <20> <> <E1ABAE> ३, <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
odd_squares = [a*a for a in range(100) if a%2];
2011-08-19 01:08:16 +04:00
- <20> <> <EFBFBD> <EFBFBD> ࠪ⨢<E0A0AA> <E2A8A2> <EFBFBD> <20> <> <EFBFBD> ᮫<EFBFBD> .
2011-08-18 00:34:16 +04:00
<20> <20> <> <EFBFBD> <EFBFBD> 筮, <20> <> 墠⠥<E5A2A0> <20> ᭮<EFBFBD> <E1ADAE> <EFBFBD> <EFBFBD> ᨫ<> Python - <20> <> <EFBFBD> <20> ⠭<EFBFBD> <E2A0AD> <EFBFBD> ⭮<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⥪<EFBFBD> .
3. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ७<EFBFBD> <E0A5AD> TinyPy.
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <E0AEA5> <EFBFBD> <EFBFBD> <20> 㭪権 <20> TinyPy <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 筮 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> 㫥<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 筮 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> . <20> <> <EFBFBD> ᬮ<EFBFBD> ਬ ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 㫥<EFBFBD> <20> <> ᠬ<> <E1A0AC> TinyPy, <20> <>
C <20> <20> <> FASM.
3.1. <20> <> <EFBFBD> 㫨 <20> <> TinyPy.
TinyPy <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> 쭮<EFBFBD> <20> ணࠬ<E0AEA3> <E0A0AC> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> , ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 㫥<EFBFBD>
<20> ਭ樯<E0A8AD> <E6A8AF> <EFBFBD> 쭮 <20> <> 祬 <20> <> <20> ⫨砥<E2ABA8> <E7A0A5> <EFBFBD> <20> <> Python. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
<20> ணࠬ<E0AEA3> <E0A0AC> <20> <> <20> <> <EFBFBD> <EFBFBD> 䠩<> <E4A0A9> <EFBFBD> :
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> math.py:
def square(a):
return a*a
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> prog.py:
import math
if __name__=="__main__":
math.square(12)
<20> <> <EFBFBD> 砫<EFBFBD> <20> 㦭<EFBFBD> <> <E1AAAE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> math.py <20> <20> <> <EFBFBD> <EFBFBD> -<2D> <> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> ணࠬ<E0AEA3> <E0A0AC>
2011-08-19 01:08:16 +04:00
py2bc.py, <20> <> <EFBFBD> ࠡ<> ⠥<EFBFBD> <20> <> <EFBFBD> <20> Python, ⠪ <20> <20> TinyPy. <20> <> <EFBFBD> <EFBFBD> ᪠<EFBFBD> <E1AAA0> shell <20> <20> 믮<EFBFBD> <EBAFAE> 塞 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
# tinypy py2bc.py math.py math.tpc
<20> <> <20> ⮣<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> prog.py <20> <> TinyPy.
# tinypy prog.py
144
<20> <> <EFBFBD> <EFBFBD> 砭<EFBFBD> <E7A0AD> : ᨭ⠪<E1A8AD> <E2A0AA> <EFBFBD> "from module import function" <20> <> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ন<EFBFBD> <E0A6A8> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .
2011-08-18 00:34:16 +04:00
3.2 <20> <> <EFBFBD> 㫨 <20> <> C.
<20> ਬ<EFBFBD> <E0A8AC> ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 㫥<EFBFBD> <20> <> C <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ᬮ<EFBFBD> <E1ACAE> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> ⠫<EFBFBD> <E2A0AB> <EFBFBD> modules/kolibri. <20> <> <EFBFBD> <EFBFBD> <EFBFBD>
<20> <> <EFBFBD> 㫨 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ᪨ <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> ᠬ<> <E1A0AC> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> , ᮮ⢥<E1AEAE> <E2A2A5> ⢥<EFBFBD> <E2A2A5> <EFBFBD> ,
㢥<> <E3A2A5> 稢<EFBFBD> <E7A8A2> <EFBFBD> <20> <> <EFBFBD> ࠧ<> <E0A0A7> <EFBFBD> . <20> <> <EFBFBD> ᭨<> <E1ADA8> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 室<EFBFBD> <E5AEA4> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> TinyPy
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <20> <> ꥪ<EFBFBD> <EAA5AA> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> 䠩<> <E4A0A9> <20> <> 室<EFBFBD> <E5AEA4> <EFBFBD> ⥪<> ⮢ <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20>
<20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ४⨢<E0A5AA> #include. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⥫<EFBFBD> <E2A5AB> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> 㫨 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <E0AEA2> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20>
<20> ⤥<EFBFBD> <E2A4A5> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ꥪ<EFBFBD> <EAA5AA> <EFBFBD> <EFBFBD> 䠩<> <E4A0A9> , <20> <20> ⮬ <20> <> <EFBFBD> 砥 <20> 㦭<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> Makefile, <20> <> <EFBFBD>
<20> <> 筮 ⠪ <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ४⨢<E0A5AA> <E2A8A2> include.
<20> <20> <> <EFBFBD> 㫥 <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ⢮<EFBFBD> <E2A2AE> <EFBFBD> <EFBFBD> <20> 㭪<EFBFBD> <E3ADAA> <EFBFBD> <20> <> <EFBFBD> 樠<EFBFBD> <E6A8A0> <EFBFBD> <EFBFBD> 樨 <20> <> <EFBFBD> 筮 <20> <> <EFBFBD> <20> <> <EFBFBD> 뢠<EFBFBD> <EBA2A0> <EFBFBD> <EFBFBD>
<modname>_init. <20> <> <EFBFBD> <20> <> <EFBFBD> 뢠<EFBFBD> <EBA2A0> <EFBFBD> <EFBFBD> <20> tpmain <20> ࠧ<EFBFBD> <20> <> <20> <> <EFBFBD> 樠<EFBFBD> <E6A8A0> <EFBFBD> <EFBFBD> 樨 <20> <> <EFBFBD> <EFBFBD> 㠫쭮<E3A0AB>
<20> <> 設<EFBFBD> , ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <> <E1ABAE> <EFBFBD> <EFBFBD> <20> <> ᯮ<EFBFBD> <E1AFAE> <EFBFBD> <EFBFBD> 㥬<EFBFBD> <E3A5AC> <20> <> ꥪ⮢ <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <20> ।<EFBFBD> <E0A5A4> ।<EFBFBD> <E0A5A4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <> <E1ABAE> <EFBFBD> <EFBFBD> modules.
<20> ⮡<EFBFBD> <20> <> ।<EFBFBD> <E0A5A4> <EFBFBD> <EFBFBD> <EFBFBD> TinyPy-<2D> 㭪<EFBFBD> <E3ADAA> <EFBFBD> , <20> 㦭<EFBFBD> ᮧ<> <E1AEA7> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> 㭪<EFBFBD> <E3ADAA> <EFBFBD> <20> <> C <20> <> <EFBFBD> <EFBFBD>
tp_obj myfunc(tp_vm *tp);
3.3 <20> <> <EFBFBD> 㫨 <20> <> FASM.
<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> FASM <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 筮, <20> <> <20> ᥣ<EFBFBD> <E1A5A3> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> ⤥<EFBFBD> <E2A4A5> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> <EFBFBD> ꥪ<EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> 䠩<> . <20> ਬ<EFBFBD> <E0A8AC> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ᬮ<EFBFBD> <E1ACAE> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> ⠫<EFBFBD> <E2A0AB> <EFBFBD> fasm_modules. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
kolibri_dbg <20> <> ᯮ<EFBFBD> <E1AFAE> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> 㭪<EFBFBD> <E3ADAA> <EFBFBD> debug_print, <20> 뢮<EFBFBD> <EBA2AE> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> ப<EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD>
<EFBFBD> ⫠<EFBFBD> <EFBFBD> <EFBFBD> .
4. <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> kolibri.
<20> த<EFBFBD> <E0AEA4> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <> <E1ABA5> <EFBFBD> <EFBFBD> .