ಪರಿಹರಿಸಲಾಗಿದೆ: ಪೋಸ್ಟ್ ಮ್ಯಾಟ್ರಿಕ್ಸ್‌ನಿಂದ ಜಾಂಗೊ ಸಾರ ರಚನೆ

ಮುಖ್ಯ ಸಮಸ್ಯೆಯೆಂದರೆ, ಜಾಂಗೊ ಪೋಸ್ಟ್ ಮ್ಯಾಟ್ರಿಕ್ಸ್‌ನಿಂದ ಶ್ರೇಣಿಯನ್ನು ಪೈಥಾನ್ ಪಟ್ಟಿಯಾಗಿ ಹೊರತೆಗೆಯುತ್ತದೆ, ಬದಲಿಗೆ NumPy ಅರೇ. ನೀವು ರಚನೆಯಲ್ಲಿ ಯಾವುದೇ ರೀತಿಯ ಗಣಿತದ ಕಾರ್ಯಾಚರಣೆಗಳನ್ನು ಮಾಡಬೇಕಾದರೆ ಇದು ಸಮಸ್ಯೆಗಳಿಗೆ ಕಾರಣವಾಗಬಹುದು, ಏಕೆಂದರೆ ಆ ರೀತಿಯ ಕೆಲಸಕ್ಕಾಗಿ NumPy ಅರೇಗಳು ಹೆಚ್ಚು ಪರಿಣಾಮಕಾರಿಯಾಗಿರುತ್ತವೆ.

ನನ್ನ HTML ಪುಟದಲ್ಲಿ ನಾನು ಮ್ಯಾಟ್ರಿಕ್ಸ್ ಅನ್ನು ಹೊಂದಿದ್ದೇನೆ ಅದನ್ನು ನಾನು ನನ್ನ ಜಾಂಗೊ ವೀಕ್ಷಣೆಗೆ ಪೋಸ್ಟ್ ಮಾಡುತ್ತಿದ್ದೇನೆ. ಮ್ಯಾಟ್ರಿಕ್ಸ್ ಪಟ್ಟಿಗಳ ಪಟ್ಟಿಯಾಗಿದೆ ಮತ್ತು ಪೋಸ್ಟ್ ಮಾಡಿದ ಡೇಟಾದಿಂದ ಪ್ರತ್ಯೇಕ ಪಟ್ಟಿಗಳನ್ನು ಹೊರತೆಗೆಯಲು ನಾನು ಬಯಸುತ್ತೇನೆ. ನಾನು ಇದನ್ನು ಹೇಗೆ ಮಾಡಬಹುದು?
ಇಲ್ಲಿಯವರೆಗೆ ನಾನು ಹೊಂದಿದ್ದು ಇಲ್ಲಿದೆ:
def myview(request):
if request.method == 'POST': # If the form has been submitted...
form = MyForm(request.POST) # A form bound to the POST data

if form.is_valid(): # All validation rules pass

# Process the data in form.cleaned_data

return HttpResponseRedirect('/thanks/') # Redirect after POST

else:
form = MyForm() # An unbound form

return render(request, 'mytemplate.html', {'form':form})

In mytemplate.html, ನಾನು ಈ ರೀತಿ ಕಾಣುವ ಚೆಕ್‌ಬಾಕ್ಸ್‌ಗಳ ಮ್ಯಾಟ್ರಿಕ್ಸ್ ಅನ್ನು ಹೊಂದಿದ್ದೇನೆ:
<table><tr><td>1,1 <input type="checkbox" name="matrix[0][0]" value="1" /> </td> <td> 1,2 <input type="checkbox" name="matrix[0][1]" value="1" />" </td>" <"td"="" 1,3="" "="" input="" type="checkbox" name=matrix[0][2] value=1 /"" ""="" td="" tr="" table="" xtml-space:"preserve"" xmlns:xtml-space="http://www." w3corg/xml/1998/namespace"" xmlns_w3corg="/xmlns/" xml:"lang=en-us"" lang=en-us"" http://www."" w3corg/1999xhtml"" xmlns_w3corg="/1999/" html:"xmlns=http://www."" w3corg/" lang=en-us""" class="container">2,1 &"nbsp;" 2,2 "nbsp;" 2," 3 "nbsp;" 3," 1 "nbsp;" 3," 2 "nbsp;" 3," 3 "nbsp;" 4," 1 "nbsp;" 4," 2 "nbsp;" 4," 3 "" nbsp ; "" 5 , "" 1 "" nbsp ; "" 5 , "" 2 "" nbsp ; "" 5 , """ 6 ," """ 7 ," """ 8 ," """ 9 ," """ 10 ," """ 11 ," """ 12 ," """ 13 ," """ 14 , "
rntttt14,2
rn t t t 14

Related posts:

Leave a Comment