您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 
 
 

557 B

% Programmation avec Python (chapitre 11) % Dimitri Merejkowsky

\center \huge Retour sur les exceptions

A quoi sert finally

try:
    fp = open("file.txt")
    1 / 0
except ZeroDivisionError:
    print("got you")
finally:
    print("closing")
    fp.close()

Que se passe-t-il si on remplace 1/0 par my_list[42] ?

\center \huge Libraries tierces

Introduction: pip

  • python3 -m pip
  • --user

But: what about several projects?

Virtualenvs

pip + virtualenv = <3

Tuto

  • Let’s install requests!
# avant

# après