F.close()\r
return 0\r
\r
- ## Print the dictionary\r
- #\r
- # Print all items of dictionary one by one\r
- #\r
- # @param Dict: The dictionary to be printed\r
- #\r
- def printDict(Dict):\r
- if Dict is not None:\r
- KeyList = Dict.keys()\r
- for Key in KeyList:\r
- if Dict[Key] != '':\r
- print Key + ' = ' + str(Dict[Key])\r
-\r
- ## Print the dictionary\r
- #\r
- # Print the items of dictionary which matched with input key\r
- #\r
- # @param list: The dictionary to be printed\r
- # @param key: The key of the item to be printed\r
- #\r
- def printList(Key, List):\r
- if type(List) == type([]):\r
- if len(List) > 0:\r
- if Key.find(TAB_SPLIT) != -1:\r
- print "\n" + Key\r
- for Item in List:\r
- print Item\r
## TargetTxtDict\r
#\r
# Load target.txt in input Conf dir\r