Set-WebConfiguration //System.webServer/Security/Authentication/anonymousAuthentication -metadata overrideMode -value Allow -PSPath IIS:/
Set-WebConfiguration //System.webServer/Security/Authentication/windowsAuthentication -metadata overrideMode -value Allow -PSPath IIS:/
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<authentication>
<anonymousAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>
</configuration>
Set-WebConfiguration //System.Web/Security/FormsAuthenticationModule -metadata overrideMode -value Allow -PSPath IIS:/
пробовал такую elif ourfile == "Open" or ourfile == "open" or ourfile == "O" or ourfile == "o":
wb = Workbook()
print(os.listdir)
open = input("Which file open? (WITHOUT .xlsx) ")
a = 0
b = 'A' + str(a+1)
c = 'B' + str(a+1)
d = 'C' + str(a+1)
e = 'D' + str(a+1)
wb = openpyxl.load_workbook(open + '.xlsx', read_only=False)
ws = wb.active
while True:
if 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 0 in ws['A' + str(a)]:
break
else:
a = a+1
spend = input('Did you spend or earn? (Spend, earn) ')
if spend == 'spend' or spend == 'Spend' or spend == 'S' or spend == 's':
howmany = input('How many? With currency ')
ws1.write(c, "-" + howmany)
kuda = input('Where did you spend your money?')
ws[d] = kuda
wb.save(open + '.xlsx')
if spend == 'Earn' or spend == 'earn' or spend == 'E' or spend == 'e':
howmany = input('How many? With currency ')
ws[c] = "+" + howmany
kuda = input('Where did you spend your money?')
ws[d] = kuda
wb.save(open + '.xlsx')
else:
print("ERROR, can't recognize command")
else:
print("ERROR, can't recognize command")
spend=input('Did you spend or earn? (Spend, earn) ')
if spend=='spend' or spend=='Spend' or spend=='S' or spend=='s':
spend = input('Did you spend or earn? (Spend, earn) ').lower()
if spend == 'spend' or spend == 's':