Bonjour tout le monde, je débute seulement en python avec l'ide eclipse.
Le problème est que quand je lance mon script python suivant, j'obtiens le message suivant mais je ne sais pas comment vraiment lancer mon script.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 class Help(object): def __welcomeMessage(self, numRouter, numNetID): return "Bienvenue sur le routeur virtuel ", numRouter, " du reseau ", numNetID def __help(self): msgHelp = 'Aide:' msgInterval = '1.Modifier la valeur de l\'intervalle de mise a jour des vecteurs de distance\n' msgWeight = '2.Modifier le poids d\'un lien\n' msgChat = '3.Envoyer un message a un routeur\n' msgPing = '4.Envoyer un Ping vers une destination\n' msgTraceroute = '5.Envoyer un Traceroute vers une destination\n' msgForwardingTable = '6.Afficher la table de forwarding\n' msgDistanceVector = '7.Afficher les vecteurs de distance recus des voisins\n' msgLog = '8.Afficher le journal d\'evenements\n' return msgHelp, msgInterval, msgWeight, msgChat, msgPing, msgTraceroute, msgForwardingTable, msgDistanceVector, msgLog def __choiceQuestion(self): return 'Quel est votre choix?' print help()
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Welcome to Python 2.7! This is the online help utility. If this is your first time using Python, you should definitely check out the tutorial on the Internet at <a href="http://docs.python.org/tutorial/" target="_blank">http://docs.python.org/tutorial/</a>. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam".
Partager