📜  同时迭代两个范围并将其保存在数据库中 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:36.481000             🧑  作者: Mango

代码示例1
from .models import userData as us
import pandas as pd

def enterData(request):
    data=pd.read_csv(r"abc.csv",encoding='ISO-8859-1')
    username=data['userName']
    address=data['address']
    for a, b in zip(username, address):
        db=ud(userName=a,Address=a)
        db.save()