我尝试按照命令安装django
pip install -e django/
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
django/ should either be a path to a local project or a VCS url beginning with
svn+, git+, hg+, or bzr+
Run Code Online (Sandbox Code Playgroud)
我使用Windows 32位
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
def threshold(imageArray):
balanceAr = []
newAr = imageArray
for eachRow in imageArray:
for eachPix in eachRow:
avgNum = reduce(lambda x, y: x + y, eachPix[:3]) / len(eachPix[:3])
balanceAr.append(avgNum)
balance = reduce(lambda x, y: x + y, balanceAr) / len(balanceAr)
for eachRow in newAr:
for eachPix in eachRow:
if reduce(lambda x, y: x + y, eachPix[:3]) / len(eachPix[:3]) > balance:
eachPix[0] = 255
eachPix[1] = 255
eachPix[2] = 255 …Run Code Online (Sandbox Code Playgroud)