jionIt’s like splicing a list or tuple with a string, and of course, splicing a string with a str
The result is naturally a string.
ex1:
results:
Case application:
When we read something out of a file, it’s often a list with many string elements, and if we want to convert it directly to str, we can use’. join ()
ex2:
Note: the content of jointest.txt is {‘testcase’:’case1′,’testresults’:’Pass’}.
fd.readlines()The result is [‘{‘testcase’:’case1′,’testresults’:’Pass’...
Reading catalogues
NIC naming rule file:
Change the CentOS7.x NIC name to the traditional naming method:
Working mode:
Configuration example:
Delete bonding configuration example:
1: files related to network configuration
1、Network card name configuration related files
Back to the top
NIC naming rule file:
/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:db:c9:5c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS==...
OAuth It’s an open network standard for authorization and is widely used worldwide. The current version is version 2.0.
In this paper, OAuth 2.0 design ideas and operation process, do a concise and popular explanation, the main reference material for RFC 6749.
I. application scenarios
To understand the application of OAuth, let me give you a hypothetical example.
There is a cloud printing website that can store users in Google photos and print them out. In order to use this service, users must read “cloud printing” to read photos stored on Google.
The problem is that only ...
If anyone asks me, what is the necessary software skills as a data analyst?
There are no more than three tools to answer from the frequency of usage and the scenario used.
1、Excel I believe everyone is familiar with Excel almost every day, although excel is dealing with a small amount of data, but we daily face the frequency of large data processing is not much, unless do some very targeted thematic analysis, so the level of an Excel data analyst, determine this oneHuman growth and efficiency
2、PPT Mainly used to display analytical thinking and analysis results.
3、SQL This i...
*First of all, I’m using versions of Python 3.5 and Django 2.0.4, and the company is using Django, not restframework.
I. application scenarios
First, a Django project usually has multiple apps, and now many companies share a common database of these apps. There are no so-called multiple databases in this scenario. In my personal experience, the company has made some small systems in the past two months.It’s all for sorting data inside the company), because each is in a hurry, so it’s done one online, and the database and the project are on different servers. Until o...
An error was reported when the project was running, and the error was Module build failed (from. / node_modules / babel-loader / lib / index. js)
Solution:
Console input NPM install @babel/core @babel/preset-env command
Perfect solution
<One > variable, character encoding.
1:Declare variables:
#_*_coding:utf-8_*_
#__author__:"shikai"
name="shikai"#Variable name: value of name variable: Shikai
Define variable rules:
✪Variable names can only be any combination of letters, digits, or underscores.
✪The first character of a variable name cannot be a number.
✪Keyword cannot be declared as variable name.
[‘and’, ‘as’, ‘assert’, ‘break’, ‘class’, ‘continue’, ‘def’, ‘del’, ‘elif’, ‘else’, ‘ex...
In the past few years, Red Hat has been emphasizing the interaction of four IT forms: physical servers, virtual machines, private clouds, and public clouds. Whether viewed from the competitive situation or from the changing customer needs, a single environment is unlikely to be easily extended to meet the needs of modern enterprises.
In hybrid clouds, workloads and resources can span these deployment options, so hybrid clouds are now a key component of digital transformation, and so is consistency. CIOs need to know that their applications and services will respond consistently anywhere, any...