?? ?? ??? ?? ??
?? ?? ??? ?? ?? ?? ?? ??? ?? ????? ???? ?? ????? ?? ?????. ?? ??, ??? ?? ??? '1,2,3,4,5,8'? ?? ?? ???? ? ?? '1,3'? ???? '1,2,3,4,5,8'?? ?? 1? 3? ?? ?? ? ??? ???? ???. ?? ??? ?? ??(?: Used_keys? user_key)? ?? ???? ??? ??? ??? ? ??? ??????? ???? ?? ??? ??? ? ????. ?? ?? '1,3'? '1,2,3,4,5,8'? ?? ???? ???? ?? ?? ?? 1? 3? ?? ?? ?? ?????. ??? ???? ? ?? ??? ???? ???? ?? ???? ??? ?????.
?? ?? 1: ?? ?? ?? ?? - ??(Sets) ??
?? ?? ? ??? ????? ?? ??? ????? ???? ??? ?? ?? ???? ??? ?? ?? Python? ??? ??? ??? ???? ???? ?????. ??? ??? ? ??? ???? ??? ??? ???, ?? ?? ? ???? ??? ?? ?????.
?? ??
? ??? ?? ????? ??? ??? ???? ??? ?? ??? ?? ???? ???? ????. ?? ?? ???? ?? ??? ??? ?? ??? ?? ???? ??? ???? ??? ?? ???? ??? ?????. ???? ?? ??? ??? ?? ??? ?? ??? ?? ?? ??? ?? ??? ?? ??? ?? ?? ????? ?????.
?? ??
- ??? ???: Split(',') ???? ?? ??? ??? ???(??? ??? ????)? ?? ??? ???? ?????.
- ???? ??: ??? ?? ??? ??? ?? ??? ?????.
- ?? ?? ??: issubset() ???? ???? ??? ?? ??? ??? ?? ??? ?? ???? ?????.
?? ??
# ??? ??? ???? ? ??? ??? ??? ?????. Used_keys_str = '1,2,3,4,5,8' # ???? ??? ?? set available_numbers = set(used_keys_str.split(',')) # ??? ?? ??? ?????. ?: {'1', '2', '4', '5', '8'} user_key_input = input("? ??? ?????(?: 1,3):") # ??? ??? ??? ?? ???? ?? input_numbers = set(user_key_input.split(',')) # input_numbers.issubset(available_numbers)? ?? ???? ??? ??? ?? ??? ??? ?? ???? ?????. print(f"??? ??({user_key_input})? ?? ?????.") ? ??: print("?? ?????.")
?? ??
- Used_keys_str.split(','): ??? '1,2,3,4,5,8'? ['1', '2', '3', '4', '5', '8']? ?????.
- set(...): ??? {'1', '2', '3', '4', '5', '8'}? ?? ???? ?????.
- input_numbers.issubset(available_numbers): ??? ?? ?????. input_numbers ???? ? ??? available_numbers ???? ??? ?????.
?? ??
-
1,3? ?????.
- available_numbers = {'1', '2', '3', '4', '5', '8'}
- input_numbers = {'1', '3'}
- {'1', '3'}? {'1', '2', '3', '4', '5', '8'}? ?? ?????.
- ??: ??? ?? (1,3)? ?? ?????. (??)
-
1,9? ?????.
- available_numbers = {'1', '2', '3', '4', '5', '8'}
- ??_?? = {'1', '9'}
- {'1', '9'}? {'1', '2', '3', '4', '5', '8'}? ?? ??? ????('9'? ???? ?? ??).
- ??: ?? ??. (??)
??? ?
? ??? ?? ??? ??? ??? ??? 1,2? ???? ???? ?????. ?? ????? ??? ?? ??? ????? ??? ?? ?? ???? ?? ???? ???? ??? ???? ?? ??? ??? ?? ?? ??? ???? ???.
?? ?? 2: ???? ??? ??? ?? ?? - ???(Counter) ??
?? ?? ??????? ?? ?? ??? ??? ?? ? ??? ??? ??? ???? ???. ?? ??, ??? ??? '1,2,2,4,5,8'?? ???? '2,2'? ???? ? ??? ?? ????? ???? ??, '4,4'? ???? ?? ??? ??? ? ??? ???? ???(4? ? ?? ???? ?????). ? ??, ??? ?? ???? ?????? ???? ???, ? ??? ?? ??? ??? ???. Python? collections.Counter? ??? ??? ??? ???? ??? ?????.
?? ??
Counter? ?? ??? ??? ?? ???? ? ???? ?? ?? ??????. ??? ?? ? ??? ?? ??? ???? ??? ? ????. ? ?? Counter ??? ?????? ?? ?? ?? ??? ?? ???? ????? ??? ? ????.
?? ??
- ??? ???: ?? Split(',') ???? ???? ??? ??? ???? ?? ??? ???? ?????.
- ???? ??: collections.Counter? ???? ??? ?? ??? ??? ? ??? ?? ??? ???? Counter ??? ?????.
- ??? ??: Counter ??? ?? ???(
?? ??
??? ?? ????? # ??? ?????? ???? ??? ?????. Used_keys_str_with_duplicates = '1,2,2,4,5,8' # ???? Counter ??? ?? available_numbers_counter = Counter(used_keys_str_with_duplicates.split(',')) # ??? ?? ???? ?????. ?: Counter({'2': 2, '1': 1, '4': 1, '5': 1, '8': 1}) user_key_input_with_duplicates = input("? ??? ??????(?: 2,2):") # ??? ??? ??? Counter ??? ?? input_numbers_counter = Counter(user_key_input_with_duplicates.split(',')) # ???? ??? ?? ??? ?? ??? ???? ????? ?????. if input_numbers_counter <h4> ?? ??</h4>
- Counter(used_keys_str_with_duplicates.split(',')): ['1', '2', '2', '4', '5', '8']? Counter({'2': 2, '1': 1, '4': 1, '5': 1, '8': 1})? ?????.
- input_numbers_counter
?? ??
-
2,2? ?????.
- available_numbers_counter = ???({'2': 2, '1': 1, '4': 1, '5': 1, '8': 1})
- input_numbers_counter = ???({'2': 2})
- Counter({'2': 2})?? available_numbers_counter?? ??? ?? ?? ?? ?? ????.
- ??: ??? ?? (2,2)? ?? ?????. (??)
-
4,4? ?????.
- available_numbers_counter = ???({'2': 2, '1': 1, '4': 1, '5': 1, '8': 1})
- input_numbers_counter = ???({'4': 2})
- input_numbers_counter? '4' ??? 2??, available_numbers_counter? '4' ??? 1? ??? ?? ??? ???? ????.
- ??: ?? ??. (??)
?? ? ?? ??
?? ?? ??? ??? ?? ?? ??? ?? ????.
- ?? ??: ?? ????? ???? ?? ??? ???? ??? ??? ?? ??? ??? ??? ???? ?? ?? ??? ? ???? ???? ?????.
- collections.Counter ??: ???? ???? ?? ??? ???? ?? ??? ?? ??? ? ??? ?? ??? ??? ?? ??? ? ??? ???? ?????.
?? ????? ??? ??? ??? ???? ? ??? ?? ??? ???? ???.
- ?? ??: ??? ??? ?? ???? ???? ??? ????, ???? ??? ???? ??? ???? ????? ???? ??????.
- ?? ?? ??: ?? ?? ?? ???? ?? ?? ? ??? ??? ????? ?? ??????(?? ?? ???? O(1)? ???) ??? ???(?: ?? ??)? ????? ???? ???.
- ???? ???: ??? ???? ?? ???? ???? ?? ??? ???? ??? ??? ??? ???. ?? ?? ?? ???? ???? ?? ???? ???.
?? ??? ?? ??? ???? ??? ?? Python?? ?? ??? ??? ???? ????? ??? ? ????.
? ??? Python?? ?? ??? ????? ????? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Stock Market GPT
? ??? ??? ?? AI ?? ?? ??

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

? ????? PEFT LORA ???? ?? ??? ????? ???? ??? ??? ? ??? ???? ??? ??? ?????. ? ??? ???? ?? ???? ?? ?????? ?????. Aumodel? ???????? ???? ???? ???? PEFT ??????? MERGE_AND_UNLOAD ??? ???? ??? ????? ?????. ?? ????? ?? ????? ??? ?? ???? ???? PEFT ?? ??? ?? ? ???? ?? ?????.

??? ???? ????? pipinstall-rrequirements.txt? ??????. ??? ???, ?? ??? ???? ???? PIP? ???????? ???? ??? ?? ?? ??? ???? ??-no-deps ?? --user? ?? ??? ???? ?? ????.

Python? Python? ???? ??? ??? ?????. ?? ? ??? ??? ?? ?? ??? ?? ???? ?????. ?? ? ???? ?? test_? ???? ??? ???? @pytest.fixture? ???? ??? ??? ??? ???? ???? pytest.raises? ?? ??? ???? ??? ??? ?? ? ?? ?? ? ??? ???? ??? ???? ??????.

theargparsemoduleisecomedendedway handlecommand-lineargumentsinpython, robustparsing, typevalidation, helpmessages, anderrorhandling; audys.argvforsimplecaseSrequiringMinimalSetup? ?????.

? ??? Python? Numpy? ?? ??? ?? ?? ?? ?? ???? ???? ??? ???? ?? ?????, ?? ??? ?? 64 ?? ??? ??? ?? ?? ??? ??? ?????. ? ?? ???? ??? ??? ????? ??,? ??? ??? ??? ??? ??? ?????? ??? ??? ??? ? ??? MPMATH, Sympy ? GMPY? ?? ??? ?? ?????? ?? ??, ?? ? ?? ????? ???? ?????.

? ??? PEFT ?????? MERGE_AND_UNLOAD ??? ???? LORA ???? ?? ?? ?? ??? ????? ???? ???? ?? ? ?? ?? ??? ?? ??? ??? ???? ??? ?? ??? ?????. ? ??? ???? ?? ????? ? ?? ???? ???? ???? ?? ?? ???? ??? ???? AUMODEL? ?? ?? ??, ?? ?????? ?? ? ??? ? ?? ?? ??? ?????? ?? ??? ??? ??? ?? ??? ???? ??? ?? ????? ?????.

PYPDF2, PDFPLAMBER ? FPDF? Python? PDF? ?????? ?? ????????. PYPDF2? ???? PDFREADER? ?? ???? ?? extract_text ()? ????? ??? ??, ??, ?? ? ???? ??????. PDFPlumber? ???? ??? ?? ? ??? ??? ???? ? ? ???? TABLE ???? ???? ???? ?? Extract_Tables ()? ?????. FPDF (?? FPDF2)? PDF? ???? ? ???? ??? add_page (), set_font () ? cell ()? ?? ?? ? ?????. pdfs? ?? ? ? pdfwriter? append () ???? ?? ??? ?? ? ? ????.

import@contextManagerFromContextLibandDefineAgeneratorFunctionThatYieldSActlyOnce, whereCodeBeforeYieldActSasEnterAndErandCodeftertyield (??????) ACTSAS__EXIT __
