以下是我的代码
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
FileLineCount = int (os.system('wc -l < DQ1J1'))
LineCount = str (FileLineCount -5)
print 'FileLineCount: =' , FileLineCount
print 'LineCount: =' , LineCount
我正在获得输出
505
FileLineCount: = 0
LineCount: = -5
但我期待输出
505
FileLineCount: = 505
LineCount: = 500
有人可以帮助我,我哪里出错。
由于