You can use the built-in Dir () function to list an identifier for a defined object. For example, for a module, include functions, classes, and variables defined in the module.When you provide a module name to Dir (), it returns a list of the names
Summarize the use of the dir command in cmdOn a 64-bit WIN10 system, print the Help document.D:\test>dir/?Displays a list of files and subdirectories in the directory. DIR [Drive:][path][filename] [/a[[:]attributes]] [/b] [/C] [/d] [/l] [/N]
Hacking the D-Link DIR-890L
In the last six months, D-Link had been making bad mistakes, and turned me dizzy. Today I want to have some fun. I log on to their website and I can see a terrible scene:D-Link's $300 DIR-890L routerThere are many bugs in
1. List of document Resources
Form
Role
#注释
Documents in the file
Dir function
List of available properties in the object
Document string: __doc__
A document near the
Concise Python tutorial
Chapter 4 modules
Previous Page
Dir () function
Next Page
Dir () function
You can use the built-indirFunction to list the identifier defined by the module. Identifiers include functions, classes,
#!/bin/bash#Remove the mer.*_ in file name is all of the files in a dirfunctionGetdir () { forElementinch' ls $` DoDir_or_file= $"/"$element if[-D$dir _or_file] then Getdir$dir _or_file Else #deal with all file in DirMv$dir _
1 descriptionThe Dir () function can view (print) the properties and methods of an object. The type (data, module) has its own properties and methods, regardless of the object (all objects in Python).The dir () function returns a list of the types
From the initial "Hello world", go to the object-oriented. It's time to look back and see if anything is missing from the tutorial.
We mentioned a word before, "Everything is Object". So let's take a closer look at this sentence.
Python 3.4.3 (v3.4.
This function is used to display a list of properties in the current scope, or a list of attributes for the parameter object. When there is no Parameter object, displays a list of properties that are in the current scope, and if there is a
Python dir () function descriptionThe dir () function returns a list of the types of variables, methods, and definitions in the current scope, with parameters, and returns a list of properties and methods for the parameter. If the parameter contains
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.