python,在路径中引用变量的方法

fr = open('E:\pyCharm\LogisticRegression\1\'+变量+'.txt')
原文地址:https://www.cnblogs.com/Ph-one/p/11865789.html