Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Case Analysis of Python interview

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "case Analysis of Python interview". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "Python interview case Analysis"!

About the foundation

The project intends to recruit an automated operation and maintenance staff, the main requirements are python, Linux and shell scripting capabilities. But a few days after the interview, I found some problems:

False resume

No matter which line, resume water content is mostly common, look at the resume sharp comparison, on the one hand is the weak leg. Everyone wants to write their 80 points as 120, but sometimes it's too fake to ask a question or two and it leaks.

Age and salary

In the current IT industry, the most daring starting salary is the 27-33 age group, and those below the range are often afraid to charge a high price because of their ability or less experience in job-hopping. The feeling above this age has lost the drive and learning ability for young people, so the starting salary is not too high or easy to negotiate. Of course, what we are talking about here is the general situation, not those elites with strong abilities.

Attach importance to high-end rather than foundation

Often you will find that the interviewees come up and tell you what they have done similar to high-end, cutting-edge technology. I asked you a question, and the answer was all right. On the contrary, when you ask something more basic, the answer is not satisfactory. But sometimes, BUG often occurs in those small basic links.

Here are a few examples of the past few days:

List tuple dict set is an iterable object, so is the string an iterable object?

As soon as I got hot in my head, I immediately answered no, but in fact...

> from collections import Iterable > isinstance ('abc', Iterable) > True > isinstance ('', Iterable) > True

When asked about the Python collection definition in the interview, A said that you can use curly braces to wrap multiple types of data to generate collections. What about creating an empty collection? A replied casually, adding a pair of empty curly braces.

> type > type ({}) > type (set ()) >

Suppose that a list An is [1, 2, 3, 4], how to get the last data A [- 1] of A, and how to insert the number 5 into the end of A? A.append (5) OK, it seems that he thinks I'm talking about insertion, but he doesn't charge an A.insert (- 1). Index's use of-1 seems to have something to do with getting the last element I asked earlier, but is that really right?

> A = [1 A.insert (- 1) 3] > A > [1 recorder 2) 3] > A >

The append () method adds a data item to the end of the list, and the insert () method adds a data item before a specific location.

At this point, I believe you have a deeper understanding of "Python interview case analysis". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report