Python packaging artifact - Nuitka!

click on blue Follow us From the Internet, intrusion and deletion 1. Experience with pyinstaller and Nuitka 1.1 Usage Requirements This time, due to the needs of the project, to convert the python code into an exe program, after searching for a long time, I found two tools that can package python projects - pyintaller and nuitka. These two tools can meet the needs of the project at the same time:...

July 26, 2022

Python programming: from entry to practice - study notes

This is not a daily update, but updates as many as you read. Part 1 Basics Chapter 3: Introduction to Lists 3.1 Introduction to List (2021.11.19~20) 3.2 Adding, deleting and modifying elements (2021.11.21~27) 3.3 Organization list (2021.12.03~05) 3.4 Avoid index errors when using lists (2021.12.06~06) 3.5 Chapter Summary (2021.12.06~06) Chapter 4: Action List 4.1 Traverse the entire list (2022.04.18~18) 4.2 Avoid indentation errors (2022.04.18~18) 4.3 Create a list of values ​​(2022....

July 26, 2022

Python series - built-in functions (h, i)

"The Python interpreter has built-in functions and types that you can use at any time. This chapter introduces 10 functions that start with the letters h,i. " main content: hasattr() hash() help() hex() id() input() int() isinstance() issubclass() iter() (Disclaimer: All examples were run with Python 3.8) 1. hasattr( object , name ) The arguments are an object and a string. Returns True if the string is the name of one of the object's properties, False otherwise....

July 26, 2022

Python to operate Excel

Today, I will rewrite pandas. I have written two articles about pandas before and feel that the writing is not good enough. Now I have a deeper understanding of pandas in combination with the work content. This article only explains the functions that I commonly use in my work. For detailed usage, please refer to the previous recommendations below. Recommended in the past Using Pandas Add, delete, search and modify in Pandas...

July 26, 2022

Python visualization: draw mind maps easily

Cai J learns Python Click to get the "Python Learning Manual", and reply "1024" in the background to get it. "Cai J Learn Python" focuses on Python dry goods knowledge sharing, covering a large number of knowledge summaries and practical projects such as data analysis, crawler, visualization, office automation, machine learning, etc. 116 original content the public Click on " Cai J to learn Python " above and select the " Star " public account...

July 26, 2022

Python written test questions July 2022_1|Continue sharing|Follow

Students share the real questions of the written test on July 26, 2022 输入:s = “111000”输出:false解释:由 1 组成的最长连续子字符串的长度是 3:“111000”由 0 组成的最长连续子字符串的长度是 3:“111000”由 1 组成的子字符串不比由 0 组成的子字符串长,故返回 false 。示例 2:输入:s = “110100010”输出:false解释:由 1 组成的最长连续子字符串的长度是 2:“110100010”由 0 组成的最长连续子字符串的长度是 3:“110100010”由 1 组成的子字符串不比由 0 组成的子字符串长,故返回 false 。 Reference answer: words = input('请输入:')m = 1word_d = {}for n in range(len(words)-1): if words[n] == words[n+1]: m += 1 word_d[words[n]]=m else: m=1if '1' in word_d.keys() and '0' in word_d....

July 26, 2022

Python-based RPC Fuzz to find functions that can be escalated

Click the blue word / Follow us Introduction This article mainly deals with rpc privilege escalation vulnerability mining that replicates client privileges through a pipe when SeImpersonatePrivilege exists. Let’s talk about rpc first, rpc is Remote Procedure Call, the rpc interface provided by many services in windows, such as uac’s authorization and authentication RaiLaunchAdminProcess, and SvcMoveFileInheritSecurity to move files with system permissions, many of which can be used for bypass uac, privilege escalation, remote Download and so on....

July 26, 2022

Python[] is 3 times faster than list()! ! !

Click on " Xiaobai Learning Vision " above, and choose to add " star " or " top " Heavy dry goods, delivered as soon as possible Author | Source of cat under the pea flower | Python cat When using Python on a daily basis, we often need to create a list. I believe everyone is very proficient, right? # 方法一:使用成对的方括号语法list_a = []# 方法二:使用内置的 list()list_b = list() Which of the two ways of writing above do you often use?...

July 26, 2022

Python3.9 standard library sys and webbrowser

Today, I will record the Python 3.9 standard library sys and webbrowser and make an automated script based on them, so as to realize my own needs that I usually want to be lazy: After turning on the computer, if I plan to program, I need to open a lot of web pages for browsing, so I came up with the idea. One-click to open websites that are basically used every day, such as Github, StackOverflow, Python official documentation, Bilibili, MDN, Flask Chinese documentation, and my own personal website (but I don't know why, the website suddenly crashed a few days ago....

July 26, 2022

Qt calls python script and packages it

The business needs to use opencv for image processing, and the vision algorithm part is handled by other teams. Since the algorithm part is written in python, we need to integrate python into our Qt program. Here, record the process of Qt calling Python to step on the pit. 1. Call the python file in Qt to find the python installation path under the machine, and copy include, libs, python3....

July 26, 2022