PyArmor Documentation v8.5.10
assert rule to fix this problem. For example, tell --assert-import ignore module json and inspect by word list: $ pyarmor cfg assert.import:excludes = "json inspect" Tell --assert-call ignore all the function --obf-module 0 --mix-str with filter If RFT mode is not safe enough, using these options --enable-rft --no-wrap --mix-str with filter For most applications and packages If RFT mode and BCC mode are available --period N --outer --platform NAME -i --prefix PREFIX --obf-module <0,1> --obf-code <0,1,2> --no-wrap --enable--mix-str --private --restrict --assert-import --assert-call 0 码力 | 193 页 | 154.05 KB | 1 年前3PyArmor Documentation v8.1.9
assert rule to fix this problem. For example, tell --assert-import ignore module json and inspect by word list: $ pyarmor cfg assert.import:excludes = "json inspect" Tell --assert-call ignore all the function --obf-module 0 --mix-str with filter If RFT mode is not safe enought, using these options --enable-rft --no-wrap --mix-str with filter 2. For most of applications and packages If RFT mode and BCC mode are available --period N --outer --platform NAME -i --prefix PREFIX --obf-module <0,1> --obf-code <0,1> --no-wrap --enable--mix-str --private --restrict --assert-import --assert-call 0 码力 | 131 页 | 111.00 KB | 1 年前3PyArmor Documentation v6.2.7
Names Platform Tables The Modes of Obfuscated Scripts Super Mode Advanced Mode Obfuscating Code Mode Wrap Mode Obfuscating module Mode Restrict Mode The Performance of Obfuscated Scripts The Security of py # For project pyarmor config --restrict=0 pyarmor build -B The modes of Obfuscating Code Mode, Wrap Mode, Obfuscating module Mode could not be changed in command obfucate. They only could be changed For example: pyarmor init --src=src --entry=main.py . pyarmor config --obf-mod=1 --obf-code=1 --wrap-mode=0 pyarmor build -B Using Plugin to Extend License Type PyArmor could extend license type for0 码力 | 159 页 | 123.91 KB | 1 年前3PyArmor Documentation v6.3.1
Names Platform Tables The Modes of Obfuscated Scripts Super Mode Advanced Mode Obfuscating Code Mode Wrap Mode Obfuscating module Mode Restrict Mode The Performance of Obfuscated Scripts The Security of py # For project pyarmor config --restrict=0 pyarmor build -B The modes of Obfuscating Code Mode, Wrap Mode, Obfuscating module Mode could not be changed in command obfucate. They only could be changed For example: pyarmor init --src=src --entry=main.py . pyarmor config --obf-mod=1 --obf-code=1 --wrap-mode=0 pyarmor build -B Using Plugin to Extend License Type PyArmor could extend license type for0 码力 | 161 页 | 124.89 KB | 1 年前3PyArmor Documentation v6.2.8
Code Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 11.4 Wrap Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . py # For project pyarmor config --restrict=0 pyarmor build -B The modes of Obfuscating Code Mode, Wrap Mode, Obfuscating module Mode could not be changed in command obfucate. They only could be changed For example: pyarmor init --src=src --entry=main.py . pyarmor config --obf-mod=1 --obf-code=1 --wrap-mode=0 pyarmor build -B 3.9 Using Plugin to Extend License Type PyArmor could extend license type0 码力 | 153 页 | 483.38 KB | 1 年前3PyArmor Documentation v6.4.4
Code Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 11.5 Wrap Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . py # For project pyarmor config --restrict=0 pyarmor build -B The modes of Obfuscating Code Mode, Wrap Mode, Obfuscating module Mode could not be changed in command obfucate. They only could be changed For example: pyarmor init --src=src --entry=main.py . pyarmor config --obf-mod=1 --obf-code=1 --wrap-mode=0 pyarmor build -B 3.10 Using Plugin to Extend License Type PyArmor could extend license type0 码力 | 167 页 | 510.99 KB | 1 年前3PyMuPDF 1.24.2 Documentation
drawbacks. Pros are: • The search string can contain blanks and wrap across lines • Upper or lower case characters are treated equal • Word hyphenation at line ends is detected and resolved • Return may is not zero. But you also have other options: import sys import fitz def mark_word(page, text): """Underline each word that contains 'text'. (continues on next page) 10.6. How to Extract Table Content delimiters=None) # make the word list for w in wlist: # scan through all words on page if text in w[4]: # w[4] is the word's string found += 1 # count r = fitz.Rect(w[:4]) # make rect from word bbox page.add_underline_annot(r)0 码力 | 565 页 | 6.84 MB | 1 年前3The Python Handbook
isinstance(name, str) #True Notice that to see the True value in Python, outside of a REPL, you need to wrap this code inside print() , but for clarity reasons I avoid using it We used the str class here a sequence that starts from 0 and contains 4 items: [0, 1, 2, 3] . To get the index, you should wrap the sequence into the enumerate() function: items = [1, 2, 3, 4] for index, item in enumerate(items): is an example: def talk(phrase): def say(word): print(word) words = phrase.split(' ') for word in words: say(word) talk('I am going to buy the milk') If you0 码力 | 93 页 | 7.31 MB | 1 年前3Python 标准库参考指南 2.7.18
behaves identical to the built-in function long() when passed a string. string.capitalize(word) Return a copy of word with only its first character capitalized. string.expandtabs(s[, tabsize]) Expand tabs formfeed). If the second argument sep is present and not None, it specifies a string to be used as the word separator. The returned list will then have one more item than the number of non-overlapping occurrences empty string, but only at the beginning or end of a word. A word is defined as a sequence of alphanumeric or underscore characters, so the end of a word is indicated by whitespace or a non-alphanumeric,0 码力 | 1552 页 | 7.42 MB | 9 月前3Python 标准库参考指南 2.7.18
behaves identical to the built-in function long() when passed a string. string.capitalize(word) Return a copy of word with only its first character capitalized. string.expandtabs(s[, tabsize]) Expand tabs formfeed). If the second argument sep is present and not None, it specifies a string to be used as the word separator. The returned list will then have one more item than the number of non-overlapping occurrences empty string, but only at the beginning or end of a word. A word is defined as a sequence of alphanumeric or underscore characters, so the end of a word is indicated by whitespace or a non-alphanumeric,0 码力 | 1552 页 | 7.42 MB | 9 月前3
共 475 条
- 1
- 2
- 3
- 4
- 5
- 6
- 48