1:unused Import
Environment: Ubuntu 14.04 Eclipse 3.8
When developing using the Pydev plugin in the Eclipse environment, enter: Import Re, a yellow warning appears on the left, and the label will appear after it is placed: Unused import re
The reasons are as follows: (ref:http://stackoverflow.com/questions/16394732/unused-wild-import-why)
That's message just tells you're importing features from a module so you don ' t need, which means you should prob Ably import just what are you need. You shuld simply use where and is the from foobar import x, y
x
elements you y
actually need. The syntax is more useful in the from foobar import *
command-line interpreter if you don ' t want to think or type many more characters For little benefit. But in a real project, you should not use this syntax since if you use it, it won't be clear which feature from the MoD Ule you is going to use.
That is to say: Only import the RE and not use RE, and so on later use of the method of RE, this warning will naturally eliminate
Python FAQ Processing