RECURRENT DONATION
Donate monthly to support
the NeculaiFantanaru.com project
एक ही डोमेन में बाजार पर अन्य की तुलना में इस पुस्तक की आवश्यक विशेषता यह है कि यह उदाहरणों के माध्यम से एक नेता की आदर्श क्षमता का वर्णन करती है। मैंने कभी यह दावा नहीं किया कि एक अच्छा नेता बनना आसान है, लेकिन अगर लोग करेंगे तो...
मैंने यह पुस्तक लिखी है जो एक सरल तरीके से व्यक्तिगत विकास को नेतृत्व के साथ जोड़ती है, बिल्कुल एक पहेली की तरह, जहाँ आपको सामान्य छवि को फिर से बनाने के लिए दिए गए सभी टुकड़ों का मिलान करना होता है।
इस पुस्तक का उद्देश्य आपको ठोस उदाहरणों के माध्यम से जानकारी प्रदान करना है और आपको यह दिखाना है कि दूसरों को चीजों को आपके समान कोण से देखने की क्षमता कैसे प्राप्त करें।
आप यहां पूरा कोड देख सकते हैं:Https: // passin.com / QR0W 4 हो सकता है इंस्टॉलपायथन। फिर Windows10 में कमांड प्रॉम्प्ट (सीएमडी) दुभाषिया का उपयोग कर निम्नलिखित दो पुस्तकालय स्थापित करें: आमतौर पर ये पुस्तकालय पहले ही पायथन में शामिल हैं। py -m pip install re py -m pip install random "पायथन रैंडम" कोड स्वचालित रूप से उन वाक्यों को शब्दों को मिश्रित करेगा जो आप चाहते हैं, शफल () विधि का उपयोग कर। Option 1 - Simple Version import random import re # import for regular expressions listOfStrings = ["Ana are mere", "Ana are pere", "Eu am mure"] for s in listOfStrings: # for each s in the list I go through, I do something, and that something is in the body of the forum print(re.split(r' ', s)) # what is obtained after dividing a string by " " (space) result = re.split(r' ', s) # we save the result in a variable (the variable is a memory area where something is stored) random.shuffle(result) # print(result) Option 2 - Saved Version # extract the words directly from all the sentences with the help of a regular expression mix = r"[a-zA-Z]+" listOfWords = re.findall(mix, "To provide you with the best experiences, we and our partners use technologies. Such as cookies to store and / or access information. It is all about the device used.") print("Result: ", listOfWords) random.Random(4).shuffle(listOfWords) print("Shuffled stuff: ", listOfWords) # The first method to combine values from a list finalString = "" # we initialize the variable in which the final text will be put with the string empty => does not contain anything for cuvant in listOfWords: # FOR repeats what is in his body (what is in the bottom line) finalString = finalString + cuvant + " " finalString = finalString.strip() print(finalString) #SAve with open("shuffle-words.txt", "w") as some_file_handle: some_file_handle.write(finalString) Option 3 - Saved Version (+ input pop-up window) import re import random def shuffle_Bebe(text): regex = r"[a-zA-Z]+" listOfWords = re.findall(regex, text) random.shuffle(listOfWords) return listOfWords def concatenate_Bebe(listOfWords): # concatenates a list of words and the returned result is a text finalString = "" # we initialize the variable in which the final text will be put with the string empty => does not contain anything for cuvant in listOfWords: # FOR repeats what is in his body (what is in the bottom line) finalString = finalString + cuvant + " " finalString = finalString.strip() return finalString def save_text(cale_fisier, text): with open(cale_fisier, "w", encoding = 'utf-8') as file: file.write(text) if __name__ == "__main__": print("Enter a word: ") text = str(input()) # you see the text box that is started at the input () command, and what you type in the box will be converted to a string with the str () command shuffled_list = shuffle_Bebe(text) # save the list of words that were shuffled print("Lista de cuvinte amestecate este: ", shuffled_list) text_final = concatenate_Bebe(shuffled_list) print("Textul obtinut din lista de mai sus este: ", text_final) save_text("c:\\Folder2\\test_final.txt", text_final) Option 3 - Saved Version (+ input pop-up window) + Open File and Save File import re import random def shuffle(text): regex = r"[a-zA-Z]+" listOfWords = re.findall(regex, text) random.shuffle(listOfWords) return listOfWords def concatenate(listOfWords): finalString = "" for cuvant in listOfWords: finalString = finalString + cuvant + " " finalString = finalString.strip() return finalString def read_text_from_file(cale_fisier): f = open(cale_fisier, "r") text = f.read() print("ce am citit: ", text) return text def save_text_into_file(cale_fisier, text): f = open(cale_fisier, "w", encoding = 'utf-8') print("Ce am scris: ", text) f.write(text) text = read_text_from_file("test_final.txt") lista_cuvinte_amestecate = shuffle(text) text_final = concatenate(lista_cuvinte_amestecate) save_text_into_file("test_final.txt", text_final) आप पावरशेल के साथ एक ही शब्द मिश्रण आसानी से कर सकते हैं:HTML HILITE.ME का उपयोग करके उत्पन्न ((Get-Content -Path C:\Folder1\file.txt -Raw ) -split "\s+" | Sort-Object {Get-Random} ) -join ' ' | Out-File -FilePath C:\Folder1\NewFile.txt That's all folks. Latest articles accessed by readers:
Donate via Paypal
RECURRENT DONATIONDonate monthly to support SINGLE DONATIONDonate the desired amount to support Donate by Bank TransferAccount Ron: RO34INGB0000999900448439
Open account at ING Bank
|
||||||||||||
![]() |
||||||||||||