Files
2023-11-28 22:07:56 +01:00

681 lines
16 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Introduction au langage de programmation Python 3- Table of Contents</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="HelpNDoc Personal Edition 6.3.0.298">
<link type="text/css" rel="stylesheet" media="all" href="css/reset.css" />
<link type="text/css" rel="stylesheet" media="all" href="css/silver-theme/jquery-ui-1.8.12.custom.css" />
<link type="text/css" rel="stylesheet" media="all" href="css/dynatree/chm/ui.dynatree.css" />
<link type="text/css" rel="stylesheet" media="all" href="css/base.css" />
<link type="text/css" rel="stylesheet" media="all" href="css/hnd.css" />
<link type="text/css" rel="stylesheet" media="all" href="css/toc.css" />
<!--[if lte IE 8]>
<link type="text/css" rel="stylesheet" media="all" href="css/ielte8.css" />
<![endif]-->
<style type="text/css">
#tabs .ui-widget-header
{
background-color: #EFEFEF;
}
</style>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.dynatree.min.js"></script>
<script type="text/javascript" src="js/hndjsse.js"></script>
<script type="text/javascript">
window.bSearchDataLoaded = false;
var sHelpIdToActivate = '';
$(document).ready(function()
{
var sAnchorName = '';
try { sAnchorName = top.location.href.substring(top.location.href.lastIndexOf("#") + 1, top.location.href.length); }
catch(err) { sAnchorName = ''; }
var nSelectedTab = 0;
if (sAnchorName == '_index') nSelectedTab = 1
else if (sAnchorName == '_search') nSelectedTab = 2;
$("#tabs").tabs({
selected: nSelectedTab,
select: function(event, ui) { HideKwPopup(); }
});
// Toc
if ($("#tab-toc").length) {
$("#tab-toc").dynatree({
clickFolderMode: 1,
debugLevel: 0,
imagePath: 'css/dynatree/chm/',
onActivate: function(node){
if ($("#tab-keywords").length && $("#tab-keywords").dynatree && $("#tab-keywords").dynatree("getTree") && $("#tab-keywords").dynatree("getTree").activateKey)
$("#tab-keywords").dynatree("getTree").activateKey(null);
if(node.data.href && node.data.href != '#'){
window.open(node.data.href, node.data.target);
}
}
});
// Expand all nodes if required
$("#tab-toc").dynatree("getRoot").visit(function(node){
node.expand(true);
});
// Select the active help id
if (sHelpIdToActivate != '') $("#tab-toc").dynatree("getTree").activateKey(sHelpIdToActivate);
}
// Keywords
if ($("#tab-keywords").length) {
$("#tab-keywords").dynatree({
clickFolderMode: 1,
debugLevel: 0,
imagePath: 'css/dynatree/chm/',
onClick: function(node, event){
HideKwPopup();
if (node.data && node.data.click)
{
var aRefList = null;
eval('aRefList=' + node.data.click);
if (ShowKwPopup(node.li, aRefList))
{
if ($("#tab-toc") && $("#tab-toc").dynatree && $("#tab-toc").dynatree("getTree") && $("#tab-toc").dynatree("getTree").activateKey)
$("#tab-toc").dynatree("getTree").activateKey(null);
if(node.data.href && node.data.href != '#'){
window.open(node.data.href, node.data.target);
}
}
}
}
});
// Expand all nodes if required
$("#tab-keywords").dynatree("getRoot").visit(function(node){
node.expand(true);
});
}
// Load search data
(function() {
var se = document.createElement('script'); se.type = 'text/javascript'; se.async = true;
se.src = 'js/hndsd.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(se, s);
})();
});
$('body').click(function() {
HideKwPopup();
});
function SelectTocItem(sHelpId)
{
if ($("#tab-toc").length && $("#tab-toc").dynatree && $("#tab-toc").dynatree("getTree") && $("#tab-toc").dynatree("getTree").getNodeByKey) {
var aNode = $("#tab-toc").dynatree("getTree").getNodeByKey(sHelpId);
if (aNode) {
aNode.activateSilently();
}
}
else {
sHelpIdToActivate = sHelpId;
}
}
function HideKwPopup()
{
if($("#popupMenu")) $("#popupMenu").remove();
}
function ShowKwPopup(oSender, aLinks)
{
HideKwPopup();
if (!aLinks || !aLinks.length || aLinks.length == 0) return false
else if (aLinks.length == 1) return true
else
{
var oParentDiv = document.createElement("DIV");
oParentDiv.id = "popupMenu";
var oLink = null;
// Close button
oLink = document.createElement("SPAN");
oLink.className = "close-button";
oLink.innerHTML = "X";
oLink.href = "#";
oLink.onclick = HideKwPopup;
oParentDiv.appendChild(oLink);
// Items
for (var nCnt=0; nCnt<aLinks.length; nCnt++)
{
oLink = document.createElement("A");
oLink.innerHTML = aLinks[nCnt][0];
oLink.href = aLinks[nCnt][1];
oLink.target = "FrameMain";
oLink.onclick = HideKwPopup;
oParentDiv.appendChild(oLink);
}
document.body.appendChild(oParentDiv);
var pos = $(oSender).offset();
var height = $(oSender).height();
$(oParentDiv).css({
"left": (pos.left+20) + "px",
"top": (pos.top + height + 5) + "px"
});
$(oParentDiv).show();
return false;
}
}
function PerformSearch()
{
if (!window.bSearchDataLoaded) {
$("#search_results").html("Search engine data hasn't been fully loaded yet or an error occurred while loading it. This usually happens when documentation is browsed locally.");
return;
}
sValue = $("#search_value").val();
$("#search_results").html('Searching...');
var oSearchEngine = new HndJsSe;
oSearchEngine.ParseInput(sValue);
oSearchEngine.PerformSearch();
if (!oSearchEngine.aResults || !oSearchEngine.aResults.length)
{
$("#search_results").html('No results found.');
}
else
{
$("#search_results").html('<div id="search_results_content"></div>');
var oUl = $("#search_results_content").append("<ul id='lr'></ul>").find("ul");
for (var nCnt = 0; nCnt < oSearchEngine.aResults.length; nCnt++)
{
if (oSearchEngine.aResults[nCnt][0] < aTl.length)
{
oUl.append("<li><a href='" + aTl[oSearchEngine.aResults[nCnt][0]][0] + "?search=" + escape(sValue) + "' target='FrameMain'>" + unescape(aTl[oSearchEngine.aResults[nCnt][0]][1]) + "</a></li>");
}
}
// Tree
$("#search_results_content").dynatree({
clickFolderMode: 1,
debugLevel: 0,
imagePath: 'css/dynatree/chm/',
onActivate: function(node){
if ($("#search_results_content") && $("#search_results_content").dynatree && $("#search_results_content").dynatree("getTree") && $("#search_results_content").dynatree("getTree").activateKey)
$("#search_results_content").dynatree("getTree").activateKey(null);
if(node.data.href && node.data.href != '#'){
window.open(node.data.href, node.data.target);
}
}
});
}
}
</script>
</head>
<body>
<div id="tabs">
<ul>
<li><a href="#tab-toc">Contents</a></li>
<li><a href="#tab-keywords">Index</a></li>
<li><a href="#tab-search">Search</a></li>
</ul>
<div id="tab-toc">
<ul id="toc" class="">
<li class="" id="Preambule" data="">
<a
href="Preambule.html"
target="FrameMain">
Pr&eacute;ambule
</a>
</li>
<li class="" id="IDLE" data="">
<a
href="IDLE.html"
target="FrameMain">
IDLE
</a>
</li>
<li class="" id="Scripts" data="">
<a
href="Scripts.html"
target="FrameMain">
Scripts
</a>
</li>
<li class="folder" id="Variablestypesetoperateurs" data="">
<a
href="Variablestypesetoperateurs.html"
target="FrameMain">
Variables, types et op&eacute;rateurs
</a>
<ul>
<li class="" id="Nomsdevariables" data="">
<a
href="Nomsdevariables.html"
target="FrameMain">
Noms de variables
</a>
</li>
<li class="" id="Letypeintintegernombresentiers" data="">
<a
href="Letypeintintegernombresentiers.html"
target="FrameMain">
Le type int (integer: nombres entiers)
</a>
</li>
<li class="" id="Letypefloatnombresenvirguleflott" data="">
<a
href="Letypefloatnombresenvirguleflott.html"
target="FrameMain">
Le type float (nombres en virgule flottante)
</a>
</li>
<li class="" id="Lesfonctionsmathematiques" data="">
<a
href="Lesfonctionsmathematiques.html"
target="FrameMain">
Les fonctions math&eacute;matiques
</a>
</li>
<li class="" id="Letypestrstringchainedecaractere" data="">
<a
href="Letypestrstringchainedecaractere.html"
target="FrameMain">
Le type str (string : cha&icirc;ne de caract&egrave;res)
</a>
</li>
<li class="" id="Letypetuplep-uplets" data="">
<a
href="Letypetuplep-uplets.html"
target="FrameMain">
Le type tuple (p-uplets)
</a>
</li>
<li class="" id="Letypelistliste" data="">
<a
href="Letypelistliste.html"
target="FrameMain">
Le type list (liste)
</a>
</li>
<li class="" id="Letypeboolbooleen" data="">
<a
href="Letypeboolbooleen.html"
target="FrameMain">
Le type bool (bool&eacute;en)
</a>
</li>
<li class="" id="Letypedictdictionnaire" data="">
<a
href="Letypedictdictionnaire.html"
target="FrameMain">
Le type dict (dictionnaire)
</a>
</li>
<li class="" id="Immuablevsmutable" data="">
<a
href="Immuablevsmutable.html"
target="FrameMain">
Immuable vs mutable
</a>
</li>
<li class="" id="Autrestypes" data="">
<a
href="Autrestypes.html"
target="FrameMain">
Autres types
</a>
</li>
<li class="" id="ProgrammationOrienteeObjetPOO" data="">
<a
href="ProgrammationOrienteeObjetPOO.html"
target="FrameMain">
Programmation Orient&eacute;e Objet (POO)
</a>
</li>
<li class="folder" id="Exercices1" data="">
<a
href="Exercices1.html"
target="FrameMain">
Exercices 1
</a>
<ul>
<li class="" id="Exercice11" data="">
<a
href="Exercice11.html"
target="FrameMain">
Exercice 1.1
</a>
</li>
<li class="" id="Exercice17" data="">
<a
href="Exercice17.html"
target="FrameMain">
Exercice 1.2
</a>
</li>
<li class="" id="Exercice13" data="">
<a
href="Exercice13.html"
target="FrameMain">
Exercice 1.3
</a>
</li>
<li class="" id="Exercice14" data="">
<a
href="Exercice14.html"
target="FrameMain">
Exercice 1.4
</a>
</li>
<li class="" id="Exercice15" data="">
<a
href="Exercice15.html"
target="FrameMain">
Exercice 1.5
</a>
</li>
<li class="" id="Exercice16" data="">
<a
href="Exercice16.html"
target="FrameMain">
Exercice 1.6
</a>
</li></ul></li></ul></li>
<li class="folder" id="Lesconditionsinstructionsifelife" data="">
<a
href="Lesconditionsinstructionsifelife.html"
target="FrameMain">
Les conditions (instructions if, elif, else)
</a>
<ul>
<li class="" id="Linstructionif" data="">
<a
href="Linstructionif.html"
target="FrameMain">
L'instruction if
</a>
</li>
<li class="" id="Linstructionelse" data="">
<a
href="Linstructionelse.html"
target="FrameMain">
L'instruction else
</a>
</li>
<li class="" id="Linstructionelif" data="">
<a
href="Linstructionelif.html"
target="FrameMain">
L'instruction elif
</a>
</li>
<li class="folder" id="Exercices2" data="">
<a
href="Exercices2.html"
target="FrameMain">
Exercices 2
</a>
<ul>
<li class="" id="Exercice21" data="">
<a
href="Exercice21.html"
target="FrameMain">
Exercice 2.1
</a>
</li>
<li class="" id="Exercice22" data="">
<a
href="Exercice22.html"
target="FrameMain">
Exercice 2.2
</a>
</li>
<li class="" id="Exercice23" data="">
<a
href="Exercice23.html"
target="FrameMain">
Exercice 2.3
</a>
</li>
<li class="" id="Exercice24" data="">
<a
href="Exercice24.html"
target="FrameMain">
Exercice 2.4
</a>
</li>
<li class="" id="Exercice25" data="">
<a
href="Exercice25.html"
target="FrameMain">
Exercice 2.5
</a>
</li></ul></li></ul></li>
<li class="folder" id="Lesbouclesinstructionsforwhile" data="">
<a
href="Lesbouclesinstructionsforwhile.html"
target="FrameMain">
Les boucles (instructions for, while)
</a>
<ul>
<li class="" id="Linstructionwhile" data="">
<a
href="Linstructionwhile.html"
target="FrameMain">
L'instruction while
</a>
</li>
<li class="" id="Linstructionfor" data="">
<a
href="Linstructionfor.html"
target="FrameMain">
L'instruction for
</a>
</li>
<li class="folder" id="Exercices3" data="">
<a
href="Exercices3.html"
target="FrameMain">
Exercices 3
</a>
<ul>
<li class="" id="Exercice31" data="">
<a
href="Exercice31.html"
target="FrameMain">
Exercice 3.1
</a>
</li>
<li class="" id="Exercice32" data="">
<a
href="Exercice32.html"
target="FrameMain">
Exercice 3.2
</a>
</li>
<li class="" id="Exercice33" data="">
<a
href="Exercice33.html"
target="FrameMain">
Exercice 3.3
</a>
</li>
<li class="" id="Exercice34" data="">
<a
href="Exercice34.html"
target="FrameMain">
Exercice 3.4
</a>
</li>
<li class="" id="Exercice35" data="">
<a
href="Exercice35.html"
target="FrameMain">
Exercice 3.5
</a>
</li>
<li class="" id="Exercice36" data="">
<a
href="Exercice36.html"
target="FrameMain">
Exercice 3.6
</a>
</li>
<li class="" id="Exercice37" data="">
<a
href="Exercice37.html"
target="FrameMain">
Exercice 3.7
</a>
</li>
<li class="" id="Exercice38" data="">
<a
href="Exercice38.html"
target="FrameMain">
Exercice 3.8
</a>
</li>
<li class="" id="Exercice39" data="">
<a
href="Exercice39.html"
target="FrameMain">
Exercice 3.9
</a>
</li></ul></li></ul></li>
</ul>
</div>
<div id="tab-keywords">
<ul id="keywords">
</ul>
</div>
<div id="tab-search">
<form onsubmit="PerformSearch(); return false;">
<label for="search_value">Search:</label>
<input id="search_value" name="search_value"></input>
<input type="submit" value="Search"/>
</form>
<div id="search_results"></div>
</div>
</div>
</body>
</html>