python semi 第3回 --- what's oo programming?

Download Python semi 第3回 --- What's OO Programming?

Post on 17-Jul-2015

178 views

Category:

Education

5 download

Embed Size (px)

TRANSCRIPT

Python Semi 3

Python Semi 3M1:26413508

1Python , ,

2

3

4Numpy , ScipyPythonimportfromas

mathwaveNumpyMatplotlib

cos

FIDEL\\fidel\share\\PythonSemi\2\

pysemi2_1.py pysemi2_2.pypysemi2_3.py

2

()?

()()()

?

?

: math pie

sin()cos()tan()math

15math.sin(x) math

sin(x)sin(x)!numpy.sin(x) numpy

sin(x)sin(x)!math

numpy

math.sin(x) numpy.sin(x) :

file

Wave_Read ( wave )wave

file Wave_read!fileWave_read

file

getframerate()readframes()wavwave21import wave2wf = wave.open( filename , r ) # 3fs = wf.getframerate() # 4wf.setpos( pos ) # 5c = wf.readframes(n) # n(c)6wf.close() # ??

?

CintX16Hello World16.0X :

X :

X

X! getnframes()!

()

Enjoy your OO programing!

Python SoftBank Creative

Wikipediahttp://ja.wikipedia.org/wiki/%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E6%8C%87%E5%90%91

- Wikipediahttp://ja.wikipedia.org/wiki/%E3%82%AA%E3%83%96%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E6%8C%87%E5%90%91%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0

Recommended

View more >