def LoadParam()

in sample_common.py [0:0]


    def LoadParam(params_num):
        # The @topic_name is a bytes-stream on Python2, while it is a unicode-string on Python2.
        # So we must call @decode to decode bytes-stream to unicode-string when runing on Python2.
        # In addition, python3 has NOT @decode Attribute, so igonre the exception when runing on Python3.
        if params_num < len(sys.argv):
            params = list()
            hasdecode = hasattr(sys.argv[1], 'decode')

            for p in sys.argv[1:params_num + 1]:
                if hasdecode:
                    params.append(p.decode('utf-8'))
                else:
                    params.append(p)

            return params_num, params
        else:
            return 0, None