-
Notifications
You must be signed in to change notification settings - Fork 4
/
new.txt
45 lines (39 loc) · 989 Bytes
/
new.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
from openpyxl import load_workbook
>>> book=load_workbook('ict9.xlsx')
>>>
>>> book
<openpyxl.workbook.workbook.Workbook object at 0x7f6189bbcb38>
>>> sheet=book['Sheet1']
>>>
>>> sheet
<Worksheet "Sheet1">
>>> for i in sheet.rows:
... i[3].value
from openpyxl import load_workbook
>>> book=load_workbook('ict9.xlsx')
>>>
>>> book
<openpyxl.workbook.workbook.Workbook object at 0x7f6189bbcb38>
>>> sheet=book['Sheet1']
>>>
>>> sheet
<Worksheet "Sheet1">
>>> for i in sheet.rows:
... i[3].value
from openpyxl import load_workbook
>>> book=load_workbook('ict9.xlsx')
>>>
>>> book
<openpyxl.workbook.workbook.Workbook object at 0x7f6189bbcb38>
>>> sheet=book['Sheet1']
>>>
>>> sheet
<Worksheet "Sheet1">
>>> for i in sheet.rows:
... i[3].value
>>> x=0
>>> if x<=85:
... for i in sheet.rows:
... if(i[3].value is not None):
... StudentInfo.objects.create(std_name=('%s' % i[3].value), std_roll=x).save()
... x+=1