#!/usr/bin/pythonXX
---means which version of python to create a program
# XXXXXXX
---means single notes ,for note
"""
XXXXXXXX
XXXX
XXX
"""
---means numbers notes,for note
arithmetic operator:
+,-
*,/
//,%----means9//2=4,9%2=1
**---means 2**3=8
type(X)
---show the type of parement X
raw_input()
input()
---intput one number or string from keboard
print("%s"%XX)
---instead of XX
if sentence :
print
elif sentence :
print
else :
print
while:
i=1
while i<10 :
q=1
while q<i :
print("%d * %d = %d"%(i,q,i*q),end="/t")
q +=1
i+=1
for:
for i in list :
print(i)
for i in range(1,20):
print(i)
if the for end with nothing(not the break) ,there is else-function start
for i in list :
print
if :
break
else :
print
import random
a = random.randint(X,XX)
from __future__ import print_function
print('123123', end='')
python version 2.7 need import ;need not to get a new line ,and means the line end with the parameter of "end"