使用get_or_create(). 使用方式user, b = User.objects.get_or_create(u_id=1, name="張三", defaults={'address':'上海'}) print(user) ...
確定! 回上一頁