Read 0428.pdf text version

1

(04/28)

[email protected]

04/28 @

­ p.1/23

python print

if

04/28 @

­ p.2/23

PythonWin

Windows Python Python PythonWin Python Python

04/28 @

­ p.3/23

python

Python Tutorial Python Library Reference

Web

04/28 @

­ p.4/23

python

Python Tutorial Python Library Reference Web

Web

04/28 @

­ p.4/23

PythonWin

: [ ] [Python22] [Pythonwin]

[File] "> >" >

[Exit] Windows Python

04/28 @

­ p.5/23

print

>>> print 4+3, 4-3, 4*3, 4/3, # >>> print "2.3+6.2=", 2.3+6.2 # >>> print 'This is a "test".' " # ' >>> print ''' Usage: ls [OPTIONS] -a -F ''' ''' #

04/28 @

­ p.6/23

PythonWin PythonWin

04/28 @

­ p.7/23

>> >

"> >" > 1. 2.

"..." .. 2

04/28 @

­ p.8/23

e.g., "Word", "Excel"

04/28 @

­ p.9/23

...

2

= A, C , G , T

2

2

04/28 @

­ p.10/23

...

2

= A, C , G , T

2

2

04/28 @

­ p.10/23

04/28 @

­ p.11/23

04/28 @

­ p.11/23

04/28 @

­ p.11/23

04/28 @

­ p.11/23

Python 1

>> >

04/28 @

­ p.11/23

[File]

[New]

[Python script]

Python (> >) >

04/28 @

­ p.12/23

[File]

[Save]([Save As])

[File]

[Run] [OK] [Interactive Window]

>> >

04/28 @

­ p.13/23

:

python --------------------------print "hello"

---------------------------

04/28 @

­ p.14/23

height = 2 width = 3.3 print "Menseki = ", height*width Menseki = 4.6 width = "string" print "Menseki = ", height*width Menseki = stringstring

C

Pascal

int height

04/28 @

­ p.15/23

s1 = "AGACCTC" print len(s1) 7 print len("GCGACCTGTA") 10

04/28 @

­ p.16/23

print

04/28 @

­ p.17/23

l1 = len(s1) l2 = len("GCGACCTGTA")

if l1 > l2: print "s1 is longer" elif l1 == l2: print "s1 is equal to s2" else: print "s2 is longer"

04/28 @

­ p.18/23

if

if, elif, else elif if else ":"

1

04/28 @

­ p.19/23

s1 = "AGACCTC" l1 = len(s1) l2 = len("GCGACCTGTA")

if l1 > l2: print s1, " is longer" elif l1 == l2: print s1, " is equal to ", s2 else: print s2, "is longer"

04/28 @

­ p.20/23

PythonWin

[View] ( [Whitespace] ) [View] [Options] [View whitespace]

[Tabs and Whitespace]

04/28 @

­ p.21/23

and, or, not if l1 > l2 or l1 == l2: print "s1 is longer or equal"

if not l1 == l2: print "s1 is not equal to s2"

04/28 @

­ p.22/23

2 2

s1, s2

[email protected]

(12:00) GraceMail

04/28 @

­ p.23/23

Information

30 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

920071


Notice: fwrite(): send of 199 bytes failed with errno=32 Broken pipe in /home/readbag.com/web/sphinxapi.php on line 531