ควิซ Python: #closures

ควิซเกี่ยวกับ #closures 4 ชุด พร้อมคำอธิบายทุกคำตอบ

4 ขอบเขตตัวแปรและ global ยาก ชื่อแบบ local และ global, nonlocal, closure และกับดัก UnboundLocalError Python · ฟังก์ชัน #scope#closures#gotchas 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
5 Decorator ยาก อ่านและเขียน decorator ตั้งแต่ wrapper แบบง่ายไปจนถึง decorator ที่รับอาร์กิวเมนต์ Python · Python แบบ Pythonic #decorators#closures#interview 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
4 Closures ยาก Understand how functions remember the variables around them, a favorite interview topic. JavaScript · Functions & Scope #closures#interview 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม
3 Closures in Loops ยาก The classic interview puzzle of functions created inside loops, with var, let and every fix in between. JavaScript · JavaScript Interview Questions #closures#interview 10 ข้อ · ~8 นาที ยังไม่เริ่ม เริ่ม

แท็กอื่น: