5
Python Lưu vào tệp
Tôi muốn lưu một chuỗi vào tệp bằng chương trình python có tên Failed.py Đây là những gì tôi có cho đến nay: myFile = open('today','r') ips = {} for line in myFile: parts = line.split(' ') if parts[1] == 'Failure': if parts[0] in ips: ips[pars[0]] += 1 else: ips[parts[0]] …
80
python
python-2.7