Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open("file.csv", "r") as file:
- myFile = csv.reader(file, delimiter = ",")
- for row in myFile:
- print row
- with open("file.csv", "r") as file:
- myFile = csv.reader(file, delimiter = ",")
- for row in myFile:
- print ",".join(row)
- unicode_str = 'åäö'
- unicode_str_list = [unicode_str, unicode_str]
- print 'unwrapped:', unicode_str
- print 'in list:', unicode_str_list
- print 'repr:', repr(unicode_str)
- print 'str:', str(unicode_str)
- unwrapped: åäö
- in list: ['xc3xa5xc3xa4xc3xb6', 'xc3xa5xc3xa4xc3xb6']
- repr: 'xc3xa5xc3xa4xc3xb6'
- str: åäö
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement