ไพทอนตัวร้ายกับเด่กปี1

7

288

0

ติดมหาลัยละจ้าา

ติดมหาลัยละจ้าา

รวมสรุปไพทอน1เทอม

PromotionBanner

ความคิดเห็น

ยังไม่มีความคิดเห็น

ノートテキスト

ページ1:

Unit:l
What is Computer??
A. Com
- อุปกรณ์ ประมวลผลได้ ทำงานเร็ว แม่นสูง
โดย -ต้องส่งแบบ ลามก มันไม่มี ไหวพริบ
0 หลอด ณ มาก - ไม
ENIAC - สงคราม
EDVAC - ปรับปรุง - ทองเอาไว้ทำ ความอ
มาโค้ดได้หลง - Save
มาโน 60. USA
UNIVAC - 16500
3 ทรานสด) - เ
- ภาษา 104 แซมบ, ปาราดัง fortran, cool
- เทป แม่เยดมาก 29 - ปรีดีโอ
③(IC)
- บารากับว
⑦S VLSI = CPU
- Chúinn a
⑤1991-Jou.
Toyot
Python -1989 at Neterland
Hit Python Vera 2000 16 Oct
Python Ver3 2004 3 Dec
[3.8 3.11
ประเภท
24/06/2024
ลัก น น
Storage -ค.ว่า
Speed -Q.งิ้ว
Solt Acting -óตโนมัติ
Sure -Aboño
- Super Computer - wenn soforma noaudiyans
- Mainframe computer-ai sivas na wowan
- Mini computer - Downin
・Micro computer - Ian warnsia naňovan
ระบบ
Hard ware - จับติ้ว ไฟดูด
สัมผัสได้
ทด
szu - wolumn Ex. Windows
Jayam - Application
Software -
( ท่าวานได้ แต่จะไม่ได้
ANAN = OS sivujams
องค์ปรากoy Com
น ง ส าล่าด
- ฟ้าอมูล --- ประมานกล่าว - plan
Augus
C-ด. ลงว
RAM - Òw only
"เดิมอล ไม่ไจไฟ
ROM
ค.4 ค.
monos 1 Byte = 8 Bit
(0) - สกรูไฟฟ้า)
watoje
-Syntex Error. licno
Ex. 2 = 011000012
1 Kilobyte : 2ºº: 1024 Byle
Runtime Error 00026326, 1000104/ bon 1√m³ 1 Megabytes 220: 1048,576 Byte
-Logic Erron ma
Courses Web
History and License (Python)
1Gigabyte = 230.
1073,741,824 Byte
Tasos 01.01
Sun Com
-Progame

ページ2:

- #
- หลักการ เรื่องโค้ด
(แบบ จะได้รู้ว่า Code
อยู่ในการทางานของ Code)
Variable, ตัวแปร = เก็บข้อมูล
Unit: 2
Python Basic Concept
Python program
- พิมพ์เด็ก+พิมพ์ใหญ่
-} comment
Reserved words คำสงวน
Ex. def พท.ที่ท่านนอนจม
import อ้างอิง
global ตัวทป, อนาว
lambda สาวหินงาม โดยไม่ส่ง 60
return ส่งกลับไปที่ที่เก
Data type sintow
Reserved words
False
and
None
async
await
import keyword
class
print (keyword.kwlist) del
clif
except finally
from
global
import in
lambda nonlocal
or
pass
...la
True
break
continue
def
else
for
if
not
raise
return
with
try
yield
while
-ไม่เป็นอักษราพิเศษ ประเทศทั่วปร
bool
2
6012099
true/false
Arithmetic Expression
+ บวก
3
- ตัวแรก + ตัวเลบ
ไม่ต้องระบุประเภทอ
int
ตัวเอง ไม่มีทศ 12345
ลบ
Ex. 5117
- ไม่ใช่ reserved words,
*
float
ท า ท
123.45
15
2
- ตัวเล็ก + ตัวใหญ่
complexams
x+yj
string
-ตัว กษ
ABCD
Input/Outout
=
input - นำข้อมูลเข้า : รับเป็น string Only !! - รับค่า 21 ข้อมูล ต้องใส่ split()
print : จอภาพ : แสดงผล - print Answer is +i Baht), end=""
Unit:3
แสดงมล Answer is 23 Baht
Python Expression
Arithmetic Expression
-ลำดับก.ทำงานของ Math
①( )
②*,1,%
® +, -
+= เพิ่มค่า x=x+1
x+=1
X-=2
-= ลดค่า
X-x-2
*_ X*=5 X=x*5
/= x/=-8 x = x/(-8)
Relational Expression
เปรียบเทียบค่า 2 ค่ำ
==
=
< <
1= % <= L
> >
>= 31
Logical Expvession
hot ≡ ผกผัน
ตรรกศาสตร์
ต่อไปบรรทัด
ASCII Code Table
not false = true
shot true = false
คุณ
นาร
7. นาเอาเศษ
=
x
mot
Math Class ฟังก์ชั้นทมท
nath.sqrt(x) = JK
math.pow(x,y)
round(x,2)
# math ceilcx)
# math.floor(s)
math.sqrtix)
math.sin(x)
math.cos(x)
math expo
math.log(x)
math log1000
math.cebd
math.floorbx)
math fabs(x)
A แล
TATET
TAF = F
=
ทศนิยม 2 คน.
* มีทศนิยม 5 จนเต็มเพิ่มขึ้น
= ปัดทศนิยมทั้ง
ฟังก์ชันในไลบารี math
หน้าที่
x'
ค่ารากที่สองของ x
ค่าโชน์ (sine) ซอง x (หน่วยเรเดียน)
ค่าโคโชน์ (cosine) ง x (หน่วยเรเดียน)
ค่าแทนเจนต์ (mangent) ของ x (หน่วยเรเดียน)
{riatural loginx) x > 0
logฐานสิบ) ig(x) x > 0
ปัดเลขทศนิยมให้เป็นมีค่าเป็นจำนวนเต็มน้อยสุดที่ >= x
ปัดเลขทศนิยมให้เป็นมีค่าเป็นจำนวนเต็มมากสุดที่ 2x
absolute x
V430
TVT = T
TVF=T
PAT E F
FVT T
FAFF
FVF = F
%= x7 = 9 x = x%9
and
และ
Operator Precedence
or
o
กําดับการทํางาน เครี่องหมาย
การทํางานกรณี าดับเดียวกัน
1
()
โดยท่าจากซ้ายไปขวา
2
*.1.%
โดยท่าจากซ้ายไปขวา
3
โดยท่าจากซ้ายไปขวา
4
<,<*, *, **
โดยท่าจากซ้ายไปขวา
5
= F
โดยท่าจากซ้ายไปขวา
6
not
โดยท่าจากซ้ายไปขวา
7
and
โดยท่าจากซ้ายไปขวา
8
or
โดยท่าจากซ้ายไปขวา
9
โดยท่าจากขวาไปซ้าย
มีเก่ง เทงเลย! จริง จริงเลย!
News