the path to a linux is as follows:
self._path = "/sys/class/a/*/b"
what is the meaning of * in this path is not clear, please answer, thank you.
the path to a linux is as follows:
self._path = "/sys/class/a/*/b"
what is the meaning of * in this path is not clear, please answer, thank you.
*
represents arbitrary and can match paths like / sys/class/a/x/b
/ sys/class/a/y/b
.
I don't know python,. I searched it: path
has no expression about *
, so I personally prefer that the *
number is derived from regular matching rules, which means to match any folder, such as
some computer interfaces, such as Unix shell and Microsoft command prompt characters, (Command prompt), asterisks are wildcards and any kind of character. Commonly known as "universal characters". A common use of universal characters is to find a file on a computer. For example: the user is looking for a file named Document 1, and the search term can be found with Doc and D ment*.
this expression of path may not be valid in all languages, but in some languages a code can even express all descendants of a.
personal opinion only.
* is a wildcard character that represents any 0 or more characters, but if your self._path is a variable, the value of the variable may not be unique. I don't understand!
Previous: Why is the chrome browser input [type=txt] on mac automatically populated with passwords?
Next: React writing method
how to use python to realize showmount-e to display nfs server information without calling system commands ...
my graduation project is to do a system to climb the Douban website, and my classmate s graduation project is big data s topic. Our teacher Bishu asked me to use a crawler to store the data, and then make an interface to transmit the data to my classma...
when I implement python to download large quantities of data from ftp, I appear ftplib.error_temp: 425 Can t open passive connection: Address already in use to confirm that no other transmission tools occupy the connection. The port defaults to 21. H...
macOS system, vim uses python s completion plug-in jedi, but the function parameter prompt function of jedi is not available, but Ubuntu has code hints. What is the reason for the same .vimrc configuration? this is the vim,jedi under Ubuntu with prom...
recently, I am trying to download a batch of server files through paramiko s sftp, but considering server performance and bandwidth, it is necessary to add a speed limit, but after a look around paramiko, I don t seem to have mentioned this kind of pro...
Today, I opened the command line and typed pip3-V and found that it always reported errors as follows: ,python3.6ubuntu this is the way to install py3.6 before. I reinstalled it, but running to sudo python3.6 get-pip.py will make the same error. No s...
from __future__ import unicode_literals -sharpfrom flask_restful import reqparse,Api, Resource from flask_restful import Api from flask import Flask,request -sharpfrom flask import abort -sharpfrom flask import make_response,Response import json -sha...
the configuration file for uwsgi is as follows [uwsgi] socket= tmp uwsgi.sock mount= myapp= home nlp pyfoot IF server.py manage-script-name=true master=true processes=4 threads=2 stats=127.0.0.1:9191 callable=app daemonize = home nlp pyfoot IF server....
A few days ago, I downloaded pip, for the system s preinstalled python under my local centos. The specific download address is https: pypi.python.org packa.pip version 8.1.1 . The installation process went smoothly, but when using it, I was prompted ...
Out of memory: Kill process 21529 (python) score 690 or sacrifice child Jul 14 19:26:07 localhost kernel: [190988.065479] Killed process 21529 (python) total-vm:6284112kB, anon-rss:5714444kB, file-rss:676kB Jul 14 21:00:02 localhost kernel: [196623.75953...
spawn refers to the generation process of the pty module and connects its control terminal to the current process standard IO;Popen refers to the generation child process method of the subprocess module. So what s the difference between the two? From an...
the environment is centos 7 and python 2.7. The installation that wants to connect to the mysql, database is the latest version of 8.0.12, which is installed directly using yum install. an error occurred while installing mysql-python. The error message...
under the Linux terminal, executing a program will cause multiple sub-processes, and the log when multiple processes output at the same time is very chaotic. wants to achieve the effect of dividing the terminal into several different areas, each of whic...
General e-mail systems of government and enterprise departments, such as user@ domain name .com. How the interior is built. Please provide an idea ...
1, how to start the python script as a linux service and pass parameters with javaweb and post request. httpPost (127.0.0.1 jsonParam) ...
error: command gcc failed with exit status 1 error occurred when running the command pip install cryptography in centos environment. Python-devel, libevent-devel, libffi-devel, openssl-devel are all installed and are the latest versions. The details...
script name is. create_roidb.sh, script a total of 20 lines, when running this script, will have been killed, because the shell script is not very familiar with, so would like to ask, thank you very much! -sharp! bin bash OUT_PATH="." N_...
scene: Raspberry pie 3B+ camera is official: , , , , : mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x16b90b0 (ENOSPC) mmal: mma...