Skip to content

Commit 0f99291

Browse files
committed
Practice 2 - done
1 parent 364be41 commit 0f99291

File tree

7 files changed

+116
-0
lines changed

7 files changed

+116
-0
lines changed
File renamed without changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>practice2</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.python.pydev.PyDevBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.python.pydev.pythonNature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse-pydev version="1.0"?>
3+
4+
<pydev_project>
5+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
6+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
7+
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
8+
<path>/practice2/src</path>
9+
</pydev_pathproperty>
10+
</pydev_project>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#Mon May 02 00:15:42 YEKST 2011
2+
eclipse.preferences.version=1
3+
encoding//src/pkg/__init__.py=utf-8
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# coding: utf-8
2+
3+
filename = "text_src.txt"
4+
filename2 = "text_dst.txt"
5+
charsList = list()
6+
7+
def main(args):
8+
f1 = open(filename, "r")
9+
f2 = open(filename2, "w")
10+
11+
for char in f1.read():
12+
if checkRepeat(char) == False:
13+
charsList.append(char)
14+
f2.write(char)
15+
16+
def checkRepeat(char):
17+
found = False
18+
for c in charsList:
19+
if c == char:
20+
found = True
21+
return found
22+
23+
if __name__ == '__main__':
24+
import sys
25+
main(sys.argv[:])
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
��������� Python
2+
�����������?�GAEDjagpiefrmwk���������31��,�0.��542x()��-�RubzdvI:/���!��Ul�H"��[+s>]�;{}J����ONSQLc�
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
���������� � Python
2+
3+
����������
4+
������ Python ��� �����?
5+
��� ����� Python?
6+
��� ����� GAE?
7+
������� � Django
8+
AppEngine framework ��� ������ �� GAE
9+
����������
10+
������ Python ��� �����?
11+
��������� 31 ������ �������� � ����������� Python �������������, ������� ������ � ����� 30 ������. ������� �������� ����� ����� ������. �� ������ �������.
12+
13+
����� 5 ��� � ��������� ����������� ������ �� php. ������� � php4, ������ ���� �� php5.2.x (�� php5.3 �� ����� ����). ������, ��� ��������������� �������� ���������� � ��������� �������� Python �������������. � ��� ��� ������� ������ ������� ���� ����� ��� ���� ���� ���������������� - Python.
14+
15+
����� � � ����, ��� ����� �� GAE (���� � ������� ������ ����), �� ������� ����� ��������� ����� ������ �� Python. ��� � ����� �������� �������� ������ Python. � �� Ruby (��������� ���������� ��� ��������, ������ ��� zend ����������������� ����������).
16+
17+
������� ������ �� ������� ���������� ���������� ���, ����� � ����� � �������� Python �� ����� Dive Into Python (���� http://diveintopython.org). ����� �������� �� ����������, ���� � ���� ������ ������ �� �������. ������, ����� ����������, ���� ��� �� ������ ����� �������. � ��� ������� �����!
18+
��� ����� Python?
19+
����, �� ������ ������ � ������. ����� �������� ��� Python ������ �������� � �������. ������ �� ����� - ���������� �� Ubuntu linux, � ������� � ��� ����� � ���������� ���������. � ������� �������� ������� ����� ��� ������������, ���� ������� �������� ����������. ���� ������� �������.
20+
21+
����� �� � ������ ���� �����. ��� ����� - ��� ������ ����. � ��� ��� ��������� �� �����������, ������ ������ ��������� � PHP (��, � php5 ���� ����������. �� ��� �� ��� ��� ������������ ������ �� ����� ���������). �������� ������������ ��� - �������� ����������, ������� ����� "��������". ����� ������.
22+
23+
� ��������� if ������ ������ ������������. ��� ��, ����������� ������� ������ ��� ����� �� ���������. ������� ������ ������������, � ��� � if ���������� ��������. ������ ������ �������, ������ ��� ��������� ����� ����������� ����� �����������. ������� ���� ���������� ������, ��� ��� ������.
24+
25+
������ ������� �� ��������� ������ [x+y for x, y in values if x+y > 20]. ������������ �����������, ����� ������ � �������� ��������. ������ ����������� - ������� ";" � ����� ������ ������ � ������� "{ ... }" ��� ���������� ������. ��� ����������� �� ����� �������� ������, �������������� �� �� �� ���������� � ������.
26+
27+
���������� ����� �� ������ �����, ��� �������� � PHP. ����� �� ���������� ������. ��������� ��� � Java. ������, �� ��������� ���������� ������. �������� "from blog import models", ��� ������� �� ������ ������ ������. � ����� � ��� "from blog import models as mymodels" ��� ������� ������ ��� ������ ��� ������ (������ � ��� ����� �� ��������).
28+
29+
��� �������� ���������� � ���������� ����. �������� ���������� ����� ����� 3 ��������, � ��� ����� ������� ��������. � ��� ������ ����� �������� ����� �������� �����, ��� ������ ���������.
30+
��� ����� GAE?
31+
GAE (Google AppEngine) - ��� ������ � ������������� Python. ��������� ��������������� ����� � 5 ��� ����������� � ����� � 500 �� ��������� ������������. ����� ��������� ������ ����� ����� ��� �����������.
32+
33+
�� �������� ����������� ��������� ������� � �������������� �����. ���� ��� ���� ����� �� ����� - ��� ������ ������ �� ��������, ����� ��� ������� �� ����� �� �����. �� �� ����� ����������� � � ������� ���������� (���� �� ���������� ��������), �� � ������� ��������. ��� � ����� �������� ��������� ������ � ������. ���������� �������� ���������������, �� ��� ������� � ����������� �������. ���������� GAE ����������� ��� �� ���� ������ - ��� ���� ��������� �������� �� Google. � � ��� ���� ��������.
34+
35+
��� ���� ����������� GAE ����������� � ���, ��� � ���� ��������� ������ ����������� �� ����������� ���� ������, � ����� ��������� �������� ����� Python. ��� ����������� ����������� �� ���������� �������� (��������, ������ ������ JOIN ��� � SQL). ��� ������� ����� ������� ����� ������ ����� ������������� ����������. ��������� ����� �� ����� ����������� ������� � ������� ��������� ������.
36+
37+
��������� �� GAE ������� �� �������� Google AppEngine � Google AppEngine Getting Start.
38+
������� � Django
39+
Django - ���� �� ����� ������ � �������� �����������, ���������� �� Python. ���������� �������������� ��� ���������� �������, � ����� ���� ������ ������� �������� ��� ����������� �����. ��������� ����� ��� ����� �������� �� ��� - �����, ��� ��� ���� ���.
40+
41+
����������� ����� ���������� � ���, ��� ������ ������� �� ���������� (applications). ������ ���������� ����� ������������ � ������ ������� ��� ���������. �� ������ ������ �������� ���� ����������, � ����� �������, � ������������ ��� � ������ ����� ��������.
42+
43+
������ ����������� - ����� ��������� ��������� ��� ������ ����������� �������, ������ ������ �������� ��� �������������� ��������� � ������ ������. � ��� ����� ������ - ������� ������������� ������������ �������. ��� ��� �� ��� ��������� - ������� ����� ������ ������ ���� �������� �� ��������������. ��� ��������� ������� �� ��� Django.
44+
AppEngine framework ��� ������ �� GAE
45+
����� � ������� �������� Google AppEngine � �����, ��� Django �� �������������� � ������ �������. ���� � ���, ��� Django �������� � ������������ ������ ������, � Google AppEngine ����� ������ �������� ��� �������� ������. ��� ��������������� ��������� ���� ������ ������. ����� �� ������� ��������� ���������� app-engine-path, ������� ��������� ��������� �������, ��� � AppEngine. ������ �������� ��� �� ������ ���������.
46+
47+
������ � ������� ���������� � ������ ������ ������� ��� ��, ��� �������� �� Google AppEngine ��� �������, � ��� �� �������� ���� ������� ���������� � ����� Django. ��� ������� ����� ������ ��� ��������� AppEngine framework. ��������� ���� �������� ��� "����� ��� ���������, ���� � ��� ��� ���� �����������". ������ ������� � ����� ������, ��� � �� ��������� ���������, � ���� ��������� ������ ����������������� ���� ������� � ������ ������� �������, ��������� ������������ ��� Google AppEngine.
48+
49+
����� ����, � ����� �������� ��������� ������� Django, � ���� ��� ���������. ����� ��� ��� ��������� ��������� ����� �������� ������ � ��������� ����� ������� �������, ��� �����-���� �����.
50+
51+
� ��������� ����, ��� ������ ����������� ��� ����� Python � ��� �� ��� ����� ������� ����������� ��� ����������. �������, �� ���������� ��������� ���, ��� �������� Donation (�������� �������������).
52+
����������
53+
���� ���� � Python ����� 2 ������, � ��� ������ ���������, �� ������ ������� ������. ����� ����, � ������� ����� ������������ �� ����, ��� ��� ���������� ��������� ��� ���� �����, ��� � ���� ������ ��������� � ��� ��� ���� �� ��������� �������. � ��� ��� �������� ��, ��� Python ����� ����� �������� ��������� � �������� ����� ������� ���������� ������.
54+
55+
��� ���� �������, ��� Python ������ � �������� Linux �� ���������, ��� ��� �� ��� ������� ��������� ����������� ��������. ����� ����� ��������� ��� ��������� ���������� �� �������. � ����� ������ � ��� �����. � ��� ��� - �� �����, ������� � ���������� �������� ����� ����������������. Python ����� ������� ������������, � ����� ����� �����������, ������� ��� �����. � ��� ������!
56+
57+
���������, ��� ��������� ���� ����, ������� � ������ � ����� ������� ����������� �� PHP ���������� ������ ����������� �� Python. � ������� ������ ������������ ��� �� �������� ����������, ��� � �� ����, ��� ������ ���� ��������� ���������� ���� ���� � ����������.
58+
59+
���������� ����������� Python � ��� ������ ���������� � ��������. � �������, �� �������� ��� ���� ����� ���.

0 commit comments

Comments
 (0)