Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
tas_monitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d7eb5d44
authored
Nov 21, 2019
by
陈森彬
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add glo
parent
47acfcf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
utils/glo.py
utils/glo.py
0 → 100644
View file @
d7eb5d44
# -*- 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment