简体   繁体   中英

Where can I find the built-in data types for Python 3?

This is probably a really dumb question, but I'm new to programming and I want to understand how the in-built classes and their methods work. I've tried searching for builtins on my computer (I can't find it for some strange reason -- but perhaps it's that obvious and I just can't find it.), or is there something a little more low level going on there that I'm unaware of?

If it is just in a builtin python module and I'm dumb, where can this be found?

Thanks.

The most common implementation of Python is actually written in C. (Thus it is usually called CPython... not to be confused with Cython.) Thus, built in functions and classes are most frequently written in C. An example. As such, it's hard to get more detailed than the documentation without delving a great deal more thoroughly into the internals of Python and a language that you likely don't need or want to know at this point. The stdtypes documentation for Python 3 should include all of the detail you need for working with the language.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM