
การกำหนด URL Patterns บน Django
หลังจากติดตั้ง Django บน IIS ต่อไปก็กำหนด routes ให้กับ django project ของเรา 1 สร้าง views.py สร้าง function hello ดังนี้ 2 ไฟล์ urls.py import function hello เข้าไปใช้งาน และกำหนด url […]
หลังจากติดตั้ง Django บน IIS ต่อไปก็กำหนด routes ให้กับ django project ของเรา 1 สร้าง views.py สร้าง function hello ดังนี้ 2 ไฟล์ urls.py import function hello เข้าไปใช้งาน และกำหนด url […]
ช่วงนี้มี project ต้องใช้ python (ใช้ TensorFlow สร้าง model เรียกใช้งาน model ผ่าน backend ที่เป็น python ใช้ web input ข้อมูลสำหรับ train model ใหม่อีก) solution หลายๆ อย่างเลยลงตัวที่ python […]
Stack เป็นการจัดเก็บข้อมูลในแบบที่เรียกว่า LIFO : Last-In First Out (เข้าหลัง ออกก่อน) กองซ้อนๆ กันเป็นชั้นๆ การ Push เป็นการใส่ข้อมูลเข้าไป ในส่วนบนสุดของ Stack ภาพจาก : http://www.javamadesoeasy.com/2015/01/stacks.html การ Pop เป็นการลบ ข้อมูลจาก Stack จากส่วนบนสุด […]
1.สร้าง project 1.1 ไปที่ File => New Project ใส่ชื่อ project และ Company domain เลือก Empty Activity 1.2 ไฟล์ build.gradle (Module: app) ใส่
1 2 3 4 5 6 7 8 9 10 11 12 13 |
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.1' testCompile 'junit:junit:4.12' // retrofit, gson compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' } |
Copyright © 2023 | WordPress Theme by MH Themes