day6 list job

1. Basic questions Given a list of numbers, print all odd numbers in the list scores = [45, 60, 89, 30, 12, 59, 99, 80, 71, 66, 1000] for i in scores: if i % 2 != 0: print(i) Given a list of numbers, print all the numbers in the list that can be divided by 3 but cannot be divided by 2 scores = [45, 60, 89, 30, 12, 59, 99, 80, 7 ...

Added by Cleibe on Mon, 21 Feb 2022 15:33:05 +0200

The brightest kid in python log is the fancy acridine

It seems that this log module can't be downloaded in the mirror station of Tsinghua University. Other mirror stations haven't tried it. I downloaded it directly from the address of the official website[read the full text]C:\Users\Administrator>pip install nb_log Collecting nb_log Downloading nb_log-7.2.tar.gz (71 kB) |████████████████ ...

Added by acheoacheo on Mon, 21 Feb 2022 15:03:51 +0200

OpenCV function usage details 1 ~ 10, including code examples

It is used to wait for the key. When the user presses the keyboard, the statement will be executed and its return value will be obtained. When delay > 0, the program will wait for the user's key to trigger within a given delay time or wait for a delay time, and the program will continue to execute. If delay = 0, it means that the user must c ...

Added by marknt on Mon, 21 Feb 2022 14:16:54 +0200

Backtrader transaction Foundation

View account status: class TestStrategy(bt.Strategy): def next(self): print('Currently available funds', self.broker.getcash()) print('Current total assets', self.broker.getvalue()) print('Current position', self.broker.getposition(self.data).size) print('Current position cost', self.broker.getposition(self. ...

Added by cretam on Mon, 21 Feb 2022 13:19:58 +0200

Two implementations and performance comparison of Android barrage -- custom LayoutManager

IntroductionIn the previous article, the "animation" scheme was used to realize the bullet screen effect. The container control was customized. Each bullet screen was used as its sub control, and the initial position of the bullet screen was placed outside the right side of the container control. Each bullet screen was translated thro ...

Added by skeetley on Mon, 21 Feb 2022 10:06:57 +0200

Live broadcast mall platform, images are displayed side by side

On the live broadcast mall platform, the images show the relevant codes in the form of side-by-side Halcon code read_image (Image, 'claudia') //Read image concat_obj (Image, Image, Images) //Connect two iconic object tuples tile_images (Images, TiledImage1, 1, 'vertical') //Tile multiple image objects into a la ...

Added by garethhall on Mon, 21 Feb 2022 08:27:10 +0200

30 sections of minimalist Python code, 30 seconds to learn a practical skill

Life is short, learn Python! How to learn Python is the fastest. Of course, it is a variety of small projects in actual combat. Only when you think and write, can you remember the rules. Today I share with you 30 minimalist tasks, which beginners can try to achieve by themselves; This article is also 30 pieces of code. Python developers can al ...

Added by jcavard on Mon, 21 Feb 2022 04:38:37 +0200

Use Python to monitor what my son does on the computer every day

Following the monitoring of fishing behaviors such as playing games and watching videos, the turnover intention of migrant workers will also be monitored. Some netizens broke the news that Zhihu was laying off low-key staff, and the video related departments had to lay off almost half. In the discussion area of Zhihu layoffs, some netizens sai ...

Added by Strings on Mon, 21 Feb 2022 03:50:11 +0200

Proficient in Python lambda -- day 26

preface 🥇 Author introduction: high quality creator and data development engineer in Python field🥳 Inspirational to become a Python full stack engineer, pay attention to me and find more wonderful~📣 This article has been included in the Python full stack series column: 100 days proficient in Python, from entry to employment🎉 Wel ...

Added by qumar on Mon, 21 Feb 2022 03:25:28 +0200

The strongest project case of Python crawler - JS reverse. This wave of learning is making money.

If you are Xiaobai, this set of information can help you become a big bull. If you have rich development experience, this set of information can help you break through the bottleneck 2022web full set of video tutorial front-end architecture H5 vue node applet Video + data + code + interview questions. preface Some time ago, I saw someone js ...

Added by nafarius1357 on Sun, 20 Feb 2022 20:51:09 +0200