csvdumper.py 453 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. @Copyright (C) ansjer cop Video Technology Co.,Ltd.All rights reserved.
  5. @AUTHOR: ASJRD018
  6. @NAME: AnsjerFormal
  7. @software: PyCharm
  8. @DATE: 2019/12/12 11:07
  9. @Version: python3.6
  10. @MODIFY DECORD:ansjer dev
  11. @file: csvdumper.py
  12. @Contact: chanjunkai@163.com
  13. """
  14. import csv
  15. csv_file = csv.reader(open('credentials.csv', 'r'))
  16. print(csv_file)
  17. for stu in csv_file:
  18. print(stu)
  19. print(type(stu))
  20. exit()