SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
[‘primer’, 2, 3.0, [4]]
(‘primer’, 2, 3.0, [4])
{‘clau’: ‘valor1’, 2: ’valor2’}
if a==0:
print ‘a val 0’
elif a==1:
print ‘a val 1’
else:
Print ‘a no val 0 ni 1’
for element in iterable:
print element
while True:
print ‘bucle infinit’
def funcio (param0, param1):
...
class prova:
def __init__(self):
self.atr1=True
self.atr2=False
self.atr3=None
def metode1(self, param):
self.atr4=param
raise Exception
try:
...
except:
pass
• BD orientada a objectes
• Administració automàtica
• Sistema de plantilles
• URLs elegants
• Fisolofia Python
• Documentació en anglès excel·lent
# -*- coding: utf-8 -*
blank=True i null=True
Mètode amb allow_tags=True
Eliminar acció defecte amb get_actions()
Esborrar objectes explícitament amb delete()
Xerrada django
Xerrada django

Contenu connexe

En vedette

Xmas holidays gr
Xmas holidays grXmas holidays gr
Xmas holidays gr
doragk
 
XMLHTTPRequest的属性和方法简介
XMLHTTPRequest的属性和方法简介XMLHTTPRequest的属性和方法简介
XMLHTTPRequest的属性和方法简介
wensheng wei
 
XL.pdf
XL.pdfXL.pdf
XL.pdf
axpro
 
XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…
XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…
XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…
Roberto Terzi
 
XMG Artist Agreement
 XMG Artist Agreement  XMG Artist Agreement
XMG Artist Agreement
Robert Pace
 
XNAとはなにか?XNAうれしいところ、うれしくないところ
XNAとはなにか?XNAうれしいところ、うれしくないところXNAとはなにか?XNAうれしいところ、うれしくないところ
XNAとはなにか?XNAうれしいところ、うれしくないところ
IGDA Japan
 
X Mas Magazines
X Mas MagazinesX Mas Magazines
X Mas Magazines
mediafan
 

En vedette (15)

Xmas holidays gr
Xmas holidays grXmas holidays gr
Xmas holidays gr
 
Xobni Presentation at Sales 2.0 Conference
Xobni Presentation at Sales 2.0 ConferenceXobni Presentation at Sales 2.0 Conference
Xobni Presentation at Sales 2.0 Conference
 
XMLHTTPRequest的属性和方法简介
XMLHTTPRequest的属性和方法简介XMLHTTPRequest的属性和方法简介
XMLHTTPRequest的属性和方法简介
 
Xi'an Summercourse
Xi'an Summercourse Xi'an Summercourse
Xi'an Summercourse
 
X-ite 2010
X-ite 2010X-ite 2010
X-ite 2010
 
XL.pdf
XL.pdfXL.pdf
XL.pdf
 
XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…
XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…
XI SALONE DIMPRESA Pensa Leggero Agisci Veloce - Furio Bragagnolo PASTA Z…
 
Xml Diff Diffing Tesi
Xml Diff Diffing TesiXml Diff Diffing Tesi
Xml Diff Diffing Tesi
 
Xmseng
XmsengXmseng
Xmseng
 
XMG Artist Agreement
 XMG Artist Agreement  XMG Artist Agreement
XMG Artist Agreement
 
XNAとはなにか?XNAうれしいところ、うれしくないところ
XNAとはなにか?XNAうれしいところ、うれしくないところXNAとはなにか?XNAうれしいところ、うれしくないところ
XNAとはなにか?XNAうれしいところ、うれしくないところ
 
Киевская русь в XI – XII в.
Киевская русь в XI – XII в.Киевская русь в XI – XII в.
Киевская русь в XI – XII в.
 
X Mas Magazines
X Mas MagazinesX Mas Magazines
X Mas Magazines
 
Xionia
XioniaXionia
Xionia
 
XILABAS HOMBRE
XILABAS HOMBREXILABAS HOMBRE
XILABAS HOMBRE
 

Xerrada django

  • 1.
  • 2.
  • 3.
  • 4.
  • 5. [‘primer’, 2, 3.0, [4]] (‘primer’, 2, 3.0, [4]) {‘clau’: ‘valor1’, 2: ’valor2’}
  • 6. if a==0: print ‘a val 0’ elif a==1: print ‘a val 1’ else: Print ‘a no val 0 ni 1’
  • 7. for element in iterable: print element while True: print ‘bucle infinit’
  • 8. def funcio (param0, param1): ... class prova: def __init__(self): self.atr1=True self.atr2=False self.atr3=None def metode1(self, param): self.atr4=param
  • 10.
  • 11. • BD orientada a objectes • Administració automàtica • Sistema de plantilles • URLs elegants • Fisolofia Python • Documentació en anglès excel·lent
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18. # -*- coding: utf-8 -* blank=True i null=True Mètode amb allow_tags=True
  • 19. Eliminar acció defecte amb get_actions() Esborrar objectes explícitament amb delete()