diff options
author | lodin <LouieDinh@gmail.com> | 2013-07-02 17:39:42 -0700 |
---|---|---|
committer | lodin <LouieDinh@gmail.com> | 2013-07-02 17:39:42 -0700 |
commit | a062eed7d75c9105f40951bbc7369396ec16e91d (patch) | |
tree | ba16d7bb28d21ae85171e0a128ad38b4868b454c | |
parent | bbb3cf771b9a15706b16e79d7849c978485b8b35 (diff) | |
parent | 178eaad9df4b4730f7d54994633812220e132f78 (diff) |
Merge pull request #88 from gam-phon/patch-1
Added dir() function
-rw-r--r-- | python.html.markdown | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python.html.markdown b/python.html.markdown index 59a0b85c..ff77fac6 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -461,6 +461,11 @@ math.sqrt(16) == m.sqrt(16) #=> True # can write your own, and import them. The name of the # module is the same as the name of the file. +# You can find out which functions and attributes +# defines a module. +import math +dir(math) + ``` |