The invention relates to a modular artificial intelligence programing teaching aid, and belongs to the field of programming education. The teaching aid comprises hardware modules and a 3D creative design module, wherein the hardware modules comprise a resistor, an inductor, a nonpolar capacitor, an electrolytic capacitor, a cell, a button cell, a diode, a triode, a thermistor, a photosensor, a mechanical switch, an electromagnetic switch, a buzzer, a reed switch, an infrared transmission module, an infrared receiving module, an ultrasonic transmission module, an ultrasonic receiving module, aradar detection module, a loudspeaker, a servo motor, a motor, an LED, a Nixie tube, an LED display module and a PCB; the hardware modules are separated, and independently used; a welding spot and a welding pad of a relatively large size are embedded into a port of each module, and the two modules can be firmly connected by slightly bonding the welding pads with conductive double-faced adhesive tapes. Students only need to sequentially connect the modules needed by circuits according to different application occasions; and development on innovation capacities of the students is facilitated.