LeetCode-169-most elements

Title Description: Given an array of size n, find most of its elements. Most elements are those that appear in the array more than ⌊ n/2 ⌋. You can assume that an array is not empty and that there are always many elements in a given array. Example: Example 1: Input: [3,2,3] Output: 3 Ex ...

Posted on Sun, 19 Jan 2020 07:25:45 -0500 by superaktieboy

Analysis of Baidu Apollo Code: smoothing optimization in Open Space Planner

  Hello everyone, I have moved the blog on CSDN to Zhihu. Welcome to pay attention to my column on Zhihu Slow carriage(https://zhuanlan.zhihu.com/c_1132958996826546176 ) Later, I will put my daily thinking on CSDN, and the essence of the article is put on knowledge. I hope you can learn more about e ...

Posted on Sun, 19 Jan 2020 07:08:46 -0500 by naggi

Python, ONNX and ONNX tensorrt 5.1 customop registration

Preface The ultimate purpose of registering op in these three frameworks is to solve the problem of special layer deployment in TRT. The implementation process is mainly for reference onnx tutorial The specific steps are as follows: Adding the custom operator implementation in C++ and registering it ...

Posted on Sun, 19 Jan 2020 06:36:01 -0500 by Alien

Wuhan University of science and technology - Java object oriented and multithreaded comprehensive experiment - encapsulation, inheritance and polymorphism

Experimental target A preliminary model of user management module of archives management system is realized. Functions include: login interface of password mechanism; query and modification of ordinary users' own information; addition, deletion and modification of other users' information by administr ...

Posted on Sun, 19 Jan 2020 06:15:33 -0500 by darkninja_com

Actually tested two GitHub open source ticket grabbing plug-ins, and all the pits have been stepped on for you

If you don't have any confidence in your speed and all kinds of "acceleration packs" on the market, you might as well try the programmer's method to grab tickets? What's more, [12306 official announced to block a large number of paid ticket grabbing software], which means that even if you pay the membership fee for these software, you ...

Posted on Sat, 18 Jan 2020 13:33:13 -0500 by newbeee

09-06 reflection and built-in method

One reflection In Python, reflection refers to manipulating the properties of an object through a string, involving the use of four built-in functions (all objects in Python, classes and objects can use the following four methods) class Teacher: def __init__(self,full_name): self.full_name =full_name t=Teacher('Egon Lin') # hasa ...

Posted on Sat, 18 Jan 2020 09:49:04 -0500 by littlehelp

Traverse, search files and query file information

Traverse folders (folders in folders) Using OS. Walk (specify absolute path or relative path), you can put the folder in the folder into the folder All the documents are found import os for dirpath, dirnames,files in os.walk('./'): print(f'Discovery folder:{dirpath}') print(files) Among them ...

Posted on Sat, 18 Jan 2020 06:45:09 -0500 by ankit17_ag

Make "New Year's Eve Countdown" poster with python. Are you ready for the new year?

Yun Qi Hao: https://yqh.aliyun.comThe first-hand cloud information, the selected cloud enterprise case base of different industries, and the best practices extracted from many successful cases help you to make cloud decision! 000. Effect preview 001. Create image The RGBA value is a set of numbers, Red, green, blue and alpha (transparency) ...

Posted on Sat, 18 Jan 2020 04:48:54 -0500 by Murciano

Dictionary table dic tuple file and Type Summary

Article directory Dictionary statement (key: value) dict (key = value) operation Obtain merge sort attribute keys() values() items() sort Tuple tuple Characteristic statement index(val): find index count(val): count quantity nametuple file Basic grammar file = open('filename ', mode) ope ...

Posted on Sat, 18 Jan 2020 02:41:29 -0500 by flyingeagle855

python learning notes hands on how to use native urllib to send network requests

example teaching urllib.urlopen(url[,data[,proxies]]) : https://docs.python.org/2/library/urllib.html The default library of network requests in python is the urllib series, including urllib urllib2 and urllib3, which cooperate with each other in most cases Of course, there are many excellent third ...

Posted on Sat, 18 Jan 2020 01:30:27 -0500 by phprocker