Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Code Web par étapes
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Françoise Conil
Code Web par étapes
Commits
8adfefda
Commit
8adfefda
authored
2 years ago
by
Françoise Conil
Browse files
Options
Downloads
Patches
Plain Diff
Programmation Python : bonjour
parent
3ab411ac
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
basic-python/bonjour_python.py
+18
-0
18 additions, 0 deletions
basic-python/bonjour_python.py
doc/accueil.md
+4
-0
4 additions, 0 deletions
doc/accueil.md
doc/langage-python.md
+65
-0
65 additions, 0 deletions
doc/langage-python.md
with
87 additions
and
0 deletions
basic-python/bonjour_python.py
0 → 100644
+
18
−
0
View file @
8adfefda
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Programme basique Python.
"""
import
sys
if
__name__
==
'
__main__
'
:
if
len
(
sys
.
argv
)
>
1
:
prenom
=
sys
.
argv
[
1
]
else
:
prenom
=
"
inconnu
"
print
(
"
Bonjour {0}
"
.
format
(
prenom
))
print
(
f
"
Bonjour
{
prenom
}
"
)
This diff is collapsed.
Click to expand it.
doc/accueil.md
+
4
−
0
View file @
8adfefda
...
...
@@ -12,3 +12,7 @@
[
Encodages
](
encodages.md
)
# Langage Python
[
Langage Python
](
langage-python.md
)
This diff is collapsed.
Click to expand it.
doc/langage-python.md
0 → 100644
+
65
−
0
View file @
8adfefda
# Langage de programmation Python
## Information générales
1.
[
site web du langage
](
https://www.python.org/
)
2.
[
Documentation du langage
](
https://docs.python.org/3/
)
## Librairie standard
### http.server
Pour lancer un petit serveur web dans le répertoire courant :
```
shell
$
python
-m
http.server 2000
```
Librairie
[
http.server
](
https://docs.python.org/3/library/http.server.html
)
## Requests
Librairie permettant de faire des requêtes HTTP
[
Documentation Requests
](
http://docs.python-requests.org/en/master/
)
```
python
import
requests
resp
=
requests
.
get
(
"
https://en.wikipedia.org/wiki/Web_colors
"
)
resp
.
status_code
resp
.
headers
resp
.
request
resp
.
request
.
headers
resp
.
request
.
body
resp
.
request
.
url
```
## SQLAlchemy
Librairie d'accès à une base de données.
[
Site web SQLAlchemy
](
https://www.sqlalchemy.org/
)
[
Documentationi SQLAlchemy
](
https://docs.sqlalchemy.org/en/14/
)
## Beautiful Soup
Librairie pour extraire des éléments de pages HTML.
[
Site web Beautiful Soup
](
https://www.crummy.com/software/BeautifulSoup/
)
[
Documentation Beautiful Soup
](
https://www.crummy.com/software/BeautifulSoup/bs4/doc/
)
## Pandas
Librairie de manipulation de données.
[
Site web Pandas
](
https://pandas.pydata.org/
)
[
Documentation Pandas
](
https://pandas.pydata.org/docs/
)
## matplotlib
Création de graphiques, notamment via Pandas.
[
Site web matplotlib
](
https://matplotlib.org/
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment