ทำความรู้จักกับภาษา python (22) : การสร้าง Module (โมดูล) ใน python (ไพทอน)
Moderators: mindphp, ผู้ดูแลกระดาน
- chatee supasand
- PHP VIP Members
- Posts: 1666
- Joined: 04/06/2019 10:06 am
- jirawoot
- PHP VIP Members
- Posts: 3130
- Joined: 17/06/2019 10:30 am
Re: ทำความรู้จักกับภาษา python (22) : การสร้าง Module (โมดูล) ใน python (ไพทอน)
ไฟล์โมดูล
ไฟล์เรียกใช้
ผลลัพธ์
Code: Select all
def printfunc(myarg):
print('ฟังก์ชั่นที่ 1',myarg)
return
Code: Select all
import module_myarg
module_myarg.printfunc('python')
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ทำความรู้จักกับภาษา python (23) : การใช้ from...import (ฟอร์ม...อิมพอร์ต) ในภาษา python (ไพทอน)
by dawthana » 12/01/2017 3:24 pm » in Python Knowledge - 9 Replies
- 2594 Views
-
Last post by jirawoot
21/06/2019 10:07 am
-
-
- 8 Replies
- 2444 Views
-
Last post by bolue
09/06/2020 10:22 am
-
-
ทำความรู้จักกับภาษา python (15) : การสร้างฟังก์ชันใน python (ไพทอน)
by dawthana » 30/12/2016 3:38 pm » in Python Knowledge - 9 Replies
- 1510 Views
-
Last post by jirawoot
20/06/2019 2:49 pm
-
-
-
ทำความรู้จักกับภาษา python (2) : เครื่องมือที่ใช้ในการเขียน python (ไพทอน)
by dawthana » 27/12/2016 7:58 pm » in Python Knowledge - 3 Replies
- 1001 Views
-
Last post by chatee supasand
06/06/2019 4:42 pm
-
-
-
ทำความรู้จักกับภาษา python (4) : ตัวดำเนินการใน python (ไพทอน)
by dawthana » 28/12/2016 10:05 am » in Python Knowledge - 11 Replies
- 1419 Views
-
Last post by Sirayu
19/06/2019 11:56 am
-
-
-
ทำความรู้จักกับภาษา python (14) : การจัดการข้อผิดพลาดใน python (ไพทอน)
by dawthana » 30/12/2016 2:40 pm » in Python Knowledge - 9 Replies
- 1681 Views
-
Last post by jirawoot
20/06/2019 2:28 pm
-
-
-
ทำความรู้จักกับภาษา python (5) : การกำหนดตัวแปร python (ไพทอน)
by dawthana » 28/12/2016 11:41 am » in Python Knowledge - 7 Replies
- 1751 Views
-
Last post by jirawoot
19/06/2019 1:55 pm
-
-
-
ทำความรู้จักกับภาษา python (9) : ฟังก์ชันการแปลงชนิดข้อมูลใน python (ไพทอน)
by dawthana » 29/12/2016 3:15 pm » in Python Knowledge - 7 Replies
- 5090 Views
-
Last post by chatee supasand
07/06/2019 4:09 pm
-
Who is online
Users browsing this forum: Google [Bot] and 6 guests