Commit d7eb5d44 by 陈森彬

add glo

parent 47acfcf5
Showing with 19 additions and 0 deletions
# -*- coding: utf-8 -*-
class Glo():
def __init__(self):
global _global_dict
_global_dict = {}
def set_value(self,key,value):
_global_dict[key] = value
def get_value(self,key):
try:
return _global_dict[key]
except KeyError:
return None
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment