python learning articles on the first day

python2.6.6 downloaded the installation python3, then comes on Linux: environment

Job Code:

"" "....." "" as the Notes

"" " 
Input 1 to 11, then skips. 7 
n-=. 1 
the while n-<. 11: 
	IF n-==. 7: 
		Pass 
	the else: 
		Print (n-) 
	n-+. 1 = n- 
Print ( 'End') 
" "" 
"" " 
Input 1 to 100 and 
n-=. 1 
S = 0 
the while n-<101: 
    S = S + n- 
    n-= n-+. 1 
Print (S) 
"" " 
" "" 
output 1-100 even 
n-=. 1 
the while n-<101: 
    % n-2 = S 
    IF S == 0: 
        Print (n-) 
    the else: 
        Pass 
    n-+. 1 = n- 
Print ( 'End') 
"" " 
" ""
Odd input 1 to 100 
n-=. 1 
the while n-<101:  
    S = n-2%
    IF = 0 S!:
        print (n)
    else:
        pass
    n = n + 1
print ('end')
"""
"""
求1-2+3-4+5..99的和
n = 1
s = 0
while n < 100:
    if n % 2 == 0:
        s = s - n 
    else :
        s = s + n 
    n = n + 1
print (s)
"""

  

Guess you like

Origin www.cnblogs.com/liyongqiang888/p/11854929.html