Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第十四章P301中fabric打包部分的origin_content.replace('${version}’, version)执行的时候,结果没有变化 #60

Open
daaa2019 opened this issue Feb 16, 2021 · 0 comments

Comments

@daaa2019
Copy link

setup.py中的代码是
version='0.1'
然后
在fabfile.py中读取setup.py的内容并执行replace
origin_content.replace('${version}‘, version)
这里的${version}能够获取到0.1吗?我执行后,没反应呢,请问什么怎么回事?
是我哪里弄错了,还是说origin_content本来就是一个string,按道理是没办法在一个string里用${version}打印版本号?

@daaa2019 daaa2019 changed the title 第十四章fabric打包部分的origin_content.replace('${version}’, version)执行的时候,结果没有变化 第十四章P301中fabric打包部分的origin_content.replace('${version}’, version)执行的时候,结果没有变化 Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant