Home
Sign Up
Sign In
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
如何实现在外部导入时对导入对象进行修改?
ddjian
·
DDjian
·
Jun 27, 2017
· 2016 views
This topic created in 3253 days ago, the information mentioned may be changed or developed.
config.py 中定义了字典 config,在外部 from config import config 时需要修改 config['password']的值
config
导入
password'
import
1 replies
•
2017-06-28 15:58:03 +08:00
1
zhuangzhuang1988
Jun 28, 2017
https://www.python.org/dev/peps/pep-0302/
试试这个
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
4267 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 01:01
·
PVG 09:01
·
LAX 18:01
·
JFK 21:01
♥ Do have faith in what you're doing.
❯