辞書クラスで利用可能な場合は、辞書をコピーしたいだけです
テストフォルダー/dict.py
one={
"one1":"one1Data",
"one2":"one2Data",
"one2":"one3Data"}
two={
"two1":"two1Data",
"two2":"two2Data",
"two2":"two3Data"}
test.py
import testfolder.dict as dictRef
print dictRef.two # it prints the dictionary)
しかし、私がやりたいのは、dictRefで利用可能な場合は辞書をコピーすることです
a='two'
if hasattr(dictRef, a): # this will not work but searching some alternate way to do..
c = dictRef.a # Jus trying to achieve this
print c # should print dictRef.two