-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6629a58
commit adfb591
Showing
8 changed files
with
438 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module modules.an_array</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
</head><body bgcolor="#f0f0f8"> | ||
|
||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | ||
<tr bgcolor="#7799ee"> | ||
<td valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="modules.html"><font color="#ffffff">modules</font></a>.an_array</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cuser1%5Cdocuments%5Cstudy%20hard%5Cprogramming%5Ccoursework2017%5Cmodules%5Can_array.py">c:\users\user1\documents\study hard\programming\coursework2017\modules\an_array.py</a></font></td></tr></table> | ||
<p></p> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#aa55cc"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> | ||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ctypes.html">ctypes</a><br> | ||
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#ee77aa"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> | ||
<td width="100%"><dl> | ||
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> | ||
</font></dt><dd> | ||
<dl> | ||
<dt><font face="helvetica, arial"><a href="modules.an_array.html#AnArray">AnArray</a> | ||
</font></dt></dl> | ||
</dd> | ||
</dl> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#ffc8d8"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#000000" face="helvetica, arial"><a name="AnArray">class <strong>AnArray</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> | ||
|
||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | ||
<td colspan=2><tt>Creates an array and gives some tools to work with it.<br> </tt></td></tr> | ||
<tr><td> </td> | ||
<td width="100%">Methods defined here:<br> | ||
<dl><dt><a name="AnArray-__getitem__"><strong>__getitem__</strong></a>(self, index)</dt><dd><tt>Gets the value of the element.<br> | ||
<br> | ||
:param index: the index of element.<br> | ||
:return: value of the element.</tt></dd></dl> | ||
|
||
<dl><dt><a name="AnArray-__init__"><strong>__init__</strong></a>(self, size)</dt><dd><tt>Creates an array with the length size.<br> | ||
<br> | ||
:param size: the size of the array.</tt></dd></dl> | ||
|
||
<dl><dt><a name="AnArray-__len__"><strong>__len__</strong></a>(self)</dt><dd><tt>Returns the length of the array.<br> | ||
<br> | ||
:return: the size of the array.</tt></dd></dl> | ||
|
||
<dl><dt><a name="AnArray-__setitem__"><strong>__setitem__</strong></a>(self, index, value)</dt><dd><tt>Puts the value in the array element at index position.<br> | ||
<br> | ||
:param index: the index element.<br> | ||
:param value: the value of element.</tt></dd></dl> | ||
|
||
<hr> | ||
Data descriptors defined here:<br> | ||
<dl><dt><strong>__dict__</strong></dt> | ||
<dd><tt>dictionary for instance variables (if defined)</tt></dd> | ||
</dl> | ||
<dl><dt><strong>__weakref__</strong></dt> | ||
<dd><tt>list of weak references to the object (if defined)</tt></dd> | ||
</dl> | ||
</td></tr></table></td></tr></table> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module modules.my_research</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
</head><body bgcolor="#f0f0f8"> | ||
|
||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | ||
<tr bgcolor="#7799ee"> | ||
<td valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="modules.html"><font color="#ffffff">modules</font></a>.my_research</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cuser1%5Cdocuments%5Cstudy%20hard%5Cprogramming%5Ccoursework2017%5Cmodules%5Cmy_research.py">c:\users\user1\documents\study hard\programming\coursework2017\modules\my_research.py</a></font></td></tr></table> | ||
<p></p> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#ee77aa"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> | ||
<td width="100%"><dl> | ||
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> | ||
</font></dt><dd> | ||
<dl> | ||
<dt><font face="helvetica, arial"><a href="modules.my_research.html#MainResearch">MainResearch</a> | ||
</font></dt></dl> | ||
</dd> | ||
</dl> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#ffc8d8"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#000000" face="helvetica, arial"><a name="MainResearch">class <strong>MainResearch</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> | ||
|
||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | ||
<td colspan=2><tt>This class represents methods which help to do some research.<br> </tt></td></tr> | ||
<tr><td> </td> | ||
<td width="100%">Methods defined here:<br> | ||
<dl><dt><a name="MainResearch-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Reads the information from a file.<br> | ||
Makes an array which contains that information.</tt></dd></dl> | ||
|
||
<dl><dt><a name="MainResearch-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Creates a string with series titles.<br> | ||
<br> | ||
:return: a string with series titles</tt></dd></dl> | ||
|
||
<dl><dt><a name="MainResearch-popular_actors"><strong>popular_actors</strong></a>(self)</dt><dd><tt>Creates a dictionary. Gets the information about all<br> | ||
actors from given series and adds it to the dictionary<br> | ||
(key - the name of an actor/actress, value - the number of series<br> | ||
in which that actor/actress performed).<br> | ||
<br> | ||
:return: a dictionary (key - the name of an actor/actress, value -<br> | ||
the number of series in which that actor/actress performed)</tt></dd></dl> | ||
|
||
<dl><dt><a name="MainResearch-series_seasons"><strong>series_seasons</strong></a>(self)</dt><dd><tt>Creates a dictionary. Gets the information about number of seasons<br> | ||
in series adds it to the dictionary (key - series title, value - the number<br> | ||
of seasons).<br> | ||
<br> | ||
:return: a dictionary (key - series title, value - the number of seasons).</tt></dd></dl> | ||
|
||
<dl><dt><a name="MainResearch-series_titles"><strong>series_titles</strong></a>(self)</dt><dd><tt>Creates a dictionary. Gets every word from series titles and adds it<br> | ||
to the dictionary(key - word, value - the number of repetition in<br> | ||
series titles).<br> | ||
<br> | ||
:return: the dictionary(key - word, value - the number of<br> | ||
repetition in series titles).</tt></dd></dl> | ||
|
||
<hr> | ||
Data descriptors defined here:<br> | ||
<dl><dt><strong>__dict__</strong></dt> | ||
<dd><tt>dictionary for instance variables (if defined)</tt></dd> | ||
</dl> | ||
<dl><dt><strong>__weakref__</strong></dt> | ||
<dd><tt>list of weak references to the object (if defined)</tt></dd> | ||
</dl> | ||
</td></tr></table></td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#eeaa77"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> | ||
<td width="100%"><dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Makes the main research.</tt></dd></dl> | ||
<dl><dt><a name="-save_info"><strong>save_info</strong></a>(info, filename)</dt><dd><tt>Creates a new file with a name filename.<br> | ||
Writes the information from info into this file.<br> | ||
<br> | ||
:param info: a list of tuples with the information<br> | ||
that should be saved.<br> | ||
:param filename: a name of a created file.</tt></dd></dl> | ||
</td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#55aa55"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> | ||
<td width="100%"><strong>__warningregistry__</strong> = {("unclosed file <_io.TextIOWrapper name='series_seasons.txt' mode='w' encoding='cp1251'>", <class 'ResourceWarning'>, 123): True, ("unclosed file <_io.TextIOWrapper name='popular_actors.txt' mode='w' encoding='cp1251'>", <class 'ResourceWarning'>, 118): True, ("unclosed file <_io.TextIOWrapper name='ratings.txt' mode='r' encoding='utf-8'>", <class 'ResourceWarning'>, 16): True, 'version': 0, ("unclosed file <_io.TextIOWrapper name='series_titles.txt' mode='w' encoding='cp1251'>", <class 'ResourceWarning'>, 129): True}</td></tr></table> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module modules.series_research</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
</head><body bgcolor="#f0f0f8"> | ||
|
||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | ||
<tr bgcolor="#7799ee"> | ||
<td valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="modules.html"><font color="#ffffff">modules</font></a>.series_research</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cuser1%5Cdocuments%5Cstudy%20hard%5Cprogramming%5Ccoursework2017%5Cmodules%5Cseries_research.py">c:\users\user1\documents\study hard\programming\coursework2017\modules\series_research.py</a></font></td></tr></table> | ||
<p></p> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#aa55cc"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> | ||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="pytvdbapi.api.html">pytvdbapi.api</a><br> | ||
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#ee77aa"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> | ||
<td width="100%"><dl> | ||
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> | ||
</font></dt><dd> | ||
<dl> | ||
<dt><font face="helvetica, arial"><a href="modules.series_research.html#SeriesResearch">SeriesResearch</a> | ||
</font></dt></dl> | ||
</dd> | ||
</dl> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#ffc8d8"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#000000" face="helvetica, arial"><a name="SeriesResearch">class <strong>SeriesResearch</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> | ||
|
||
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> | ||
<td colspan=2><tt>Implements the <a href="#SeriesResearch">SeriesResearch</a> ADT for doing<br> | ||
research based of the information about series.<br> </tt></td></tr> | ||
<tr><td> </td> | ||
<td width="100%">Methods defined here:<br> | ||
<dl><dt><a name="SeriesResearch-__init__"><strong>__init__</strong></a>(self, length)</dt><dd><tt>Creates an array.<br> | ||
<br> | ||
:param length: the length of a created array.</tt></dd></dl> | ||
|
||
<dl><dt><a name="SeriesResearch-find_len"><strong>find_len</strong></a>(self)</dt><dd><tt>Returns the length of the array.<br> | ||
<br> | ||
:return: the size of the array.</tt></dd></dl> | ||
|
||
<dl><dt><a name="SeriesResearch-get_actors"><strong>get_actors</strong></a>(self, index)</dt><dd><tt>Gets actors from series (the value of the element is<br> | ||
the name of series).<br> | ||
<br> | ||
:param index: the index of the element.<br> | ||
:return: the list of actors.</tt></dd></dl> | ||
|
||
<dl><dt><a name="SeriesResearch-get_item"><strong>get_item</strong></a>(self, index)</dt><dd><tt>Gets the value of the element.<br> | ||
<br> | ||
:param index: the index of the element.<br> | ||
:return: value of the element.</tt></dd></dl> | ||
|
||
<dl><dt><a name="SeriesResearch-seasons_number"><strong>seasons_number</strong></a>(self, index)</dt><dd><tt>Gets the number of seasons in the given series<br> | ||
(the value of the element is the name of series).<br> | ||
<br> | ||
:param index: the index of the element.<br> | ||
:return: the number of seasons.</tt></dd></dl> | ||
|
||
<dl><dt><a name="SeriesResearch-set_item"><strong>set_item</strong></a>(self, index, value)</dt><dd><tt>Puts the value in the array element at index position.<br> | ||
<br> | ||
:param index: the index the element.<br> | ||
:param value: the value of the element.</tt></dd></dl> | ||
|
||
<hr> | ||
Data descriptors defined here:<br> | ||
<dl><dt><strong>__dict__</strong></dt> | ||
<dd><tt>dictionary for instance variables (if defined)</tt></dd> | ||
</dl> | ||
<dl><dt><strong>__weakref__</strong></dt> | ||
<dd><tt>list of weak references to the object (if defined)</tt></dd> | ||
</dl> | ||
</td></tr></table></td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#55aa55"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> | ||
<td width="100%"><strong>db</strong> = <pytvdbapi.api.TVDB object></td></tr></table> | ||
</body></html> |
Oops, something went wrong.