You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 년 전
123456
  1. import json
  2. lines = df.read_text().splitlines()
  3. ans1 = sum(len(ln) - len(eval(ln)) for ln in lines)
  4. ans2 = sum(len(json.dumps(ln)) - len(ln) for ln in lines)