Created
November 9, 2021 02:19
-
-
Save raymondctc/a54fbcac834e2c6a0e7eb0909ba5f174 to your computer and use it in GitHub Desktop.
Split data from Play Store filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
f = open("device_data.txt", "r") | |
lines = f.readlines() | |
count = 0 | |
tempString = "" | |
for line in lines: | |
if count % 2 == 0: | |
tempString = line.replace("\n", "") | |
else: | |
tempString = tempString + "," + line | |
count += 1 | |
sys.stdout.write(tempString) | |
tempString = "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment