Reputation: 27 Craftsman
- Active Members
- Active Posts:
- 109 (0.12 per day)
- 21-November 12
- Profile Views:
- Last Active:
- Dec 09 2014 10:41 PM
- Dream Kudos:
Posts I've Made
Posted 8 Dec 2014Most OCR software will detect barcodes but I don't know about location and size. Obviously it has to know some part of the location but may not make that readily available to the user.
Posted 4 Dec 2014Print "line" after this code to see what it contains and if offset 6 is the region.
for line in infile: line=line.strip().split()
Posted 3 Dec 2014You don't want the len() but the value that it is pointing to, so it should be
## convert from string (format from file) to float if float(line) >=8: ## we know it is less than 8 because ## the previous line was not true elif float(line) >= 7: etc.
Posted 3 Dec 2014The way you have stated it
Quote["CSC148H1", "/", "CSC165H1", "__/__"]but with lis[i] and lis[i+1] removed
["CSC148H1", "__/__" ]
the first slash and "CSC165H1" are removed, so it will continue to find "CSC148H1" as long as the next course has a slash following it.
Possibly the list should be stated as[ ["CSC148H1", "/"], ["CSC150H1", ","], ["CSC165H1", "/"], ["CSC240H1", "/"] ]
Posted 27 Nov 2014You can also do something like this but will have to account for two lists that don't have the same length
for ctr in range(len(list_1)): print list_1[ctr] print list_2[ctr] # # and since we know that the second sub-list is longer in this example print list_2[len(list_1):]
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
woooee hasn't added any friends yet.