apt-get install python-sphinx
apt-get install sphinxsearch
mkdir rest
cd rest/
sphinx-quickstart
Run Code Online (Sandbox Code Playgroud)
我在重组文本中创建了我的第一篇文章.
http://s.yunio.com/!LrAsu
请下载并在您的计算机上解压缩/rest/build/html,然后使用您的chrome打开index.rst.
我发现在重组文本搜索功能:
1.不能搜索汉字
2.不能搜索短文
请看附件1,这是我要搜索的目标文章
你可以看到 is,并??在文本中.
请看附件2,不能搜索文字中的汉字?? .
请参阅附件3,无法搜索is文本中的短文 .
我该如何解决这个问题?
我认为.正则表达式中的点将匹配任何字符,除了行尾字符。
但是,在 R 中,我发现点可以匹配任何内容,包括换行符\n, \r 或\r\n:
grep(c("\r","\n","\r\n"),pattern=".")
[1] 1 2 3
Run Code Online (Sandbox Code Playgroud)
有人能解释一下这个矛盾吗?
我用命令'pip3.4安装pandas'安装了pandas.
Successfully installed pandas python-dateutil pytz numpy six
Cleaning up...
root@hwy:~# python3.4
Python 3.4.2 (default, Oct 8 2014, 10:45:20)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pandas'
Run Code Online (Sandbox Code Playgroud)
在成功安装pandas后,为什么不能在python3.4中导入pandas?
root@hwy:/home/debian8# pip3.4 show pandas
---
Name: pandas
Version: 0.17.1
Location: /usr/local/python3.4/lib/python3.4/site-packages
Requires: python-dateutil, pytz, numpy
root@hwy:/home/debian8# echo "import sys; print sys.path"
import sys; print sys.path
root@hwy:/home/debian8# python3.4
Python …Run Code Online (Sandbox Code Playgroud) 在关于ip4地址类的教程中:http:
//www.tutorialspoint.com/ipv4/ipv4_address_classes.htm
B类有16384个(2**14)网络地址和65534个(2**16-2)主机地址.
C类提供2097152个(2**21)网络地址和254个(2**8-2)主机地址.

在关于ip4地址类的教程中:
http://www.vlsm-calc.net/ipclasses.php
B类具有163842(2**14-2)网络地址和65534个(2**16-2)主机地址.
C类提供20971520个(2**21-2)网络地址和254个(2**8-2)主机地址.
它们都是A类,网络数量是126 (2**7 – 2).
B类和C类的网络数量是否正确?
对于B类,网络的数量是 (2**14-2) 或(2**14)?
对于C类,网络的数量是 (2**21-2) 或(2**21)?
我已经安装了symfony 3.1.
检查是否准备好运行Symfony应用程序时会出现错误信息.
我的intl icu是用命令安装的apt-get install php5-intl,版本比55.1低52.1.
这是我编译intl icu 55.1版本的步骤.
1.download
http://site.icu-project.org/download/55#TOC-ICU4C-下载
2.extract
3.cd~/Downloads/icu/source
4./configure
5.make
6.make install
7.vim /etc/php5/apache2/php.ini
添加一行: extension=intl.so
8.service apache2 restart 9.cd/home/my_project_name
10.php app/console server:运行
11.检查配置
以http://localhost:8000/config.php在firefox中输入

已经编译和安装了Intl icu55.5版本,为什么要安装并启用intl扩展(用于验证器)?
怎么解决?
文本center位于div的中心,如代码show下方.
.Absolute-Center {
display: table-cell;
width: 100px;
height: 100px;
border:1px solid red;
text-align:center;
vertical-align:middle;
} Run Code Online (Sandbox Code Playgroud)
<div class="Absolute-Center">
<p>center</p>
</div>Run Code Online (Sandbox Code Playgroud)
现在position:absolute;在css中添加一行.Absolute-Center.
.Absolute-Center {
position:absolute;
display: table-cell;
width: 100px;
height: 100px;
border:1px solid red;
text-align:center;
vertical-align:middle;
} Run Code Online (Sandbox Code Playgroud)
<div class="Absolute-Center">
<p>center</p>
</div>Run Code Online (Sandbox Code Playgroud)
文本center现在不在div的中心,为什么position:absolute;会导致这个?
我的口碑:debian8.
uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
这是我的基本文件.
home
help
variables
compatibility
modelines
searching
selection
markers
indenting
reformatting
folding
tags
makefiles
mapping
registers
spelling
plugins
etc
Run Code Online (Sandbox Code Playgroud)
我想创建一个html文件,如下所示.
<a href="home.html" id="home">home</a>
<a href="help.html" id="help">help</a>
<a href="variables.html" id="variables">variables</a>
<a href="compatibility.html" id="compatibility">compatibility</a>
<a href="modelines.html" id="modelines">modelines</a>
<a href="searching.html" id="searching">searching</a>
<a href="selection.html" id="selection">selection</a>
<a href="markers.html" id="markers">markers</a>
<a href="indenting.html" id="indenting">indenting</a>
<a href="reformatting.html" id="reformatting">reformatting</a>
<a href="folding.html" id="folding">folding</a>
<a href="tags.html" id="tags">tags</a>
<a href="makefiles.html" id="makefiles">makefiles</a>
<a href="mapping.html" id="mapping">mapping</a>
<a href="registers.html" id="registers">registers</a>
<a href="spelling.html" …Run Code Online (Sandbox Code Playgroud) 使用以下命令,所有stderr和stdout都会重定向到/tmp/ss.log,并在后台进程中执行.
python sslocal -c /etc/shadowsocks.json > /tmp/ss.log 2>&1 &
Run Code Online (Sandbox Code Playgroud)
现在将stderr和stdout重定向到/ var/log目录,如下所示.
python sslocal -c /etc/shadowsocks.json > /var/log/ss.log 2>&1 &
bash: /var/log/ss.log: Permission denied
Run Code Online (Sandbox Code Playgroud)
它遇到许可问题.
我用sudo tee试了一下如下.
python sslocal -c /etc/shadowsocks.json |sudo tee -a /var/log/ss.log 2>&1 &
python sslocal -c /etc/shadowsocks.json 2>&1|sudo tee -a /var/log/ss.log &
nohup python sslocal -c /etc/shadowsocks.json |sudo tee -a /var/log/ss.log 2>&1 &
nohup python sslocal -c /etc/shadowsocks.json 2>&1|sudo tee -a /var/log/ss.log &
Run Code Online (Sandbox Code Playgroud)
所有这些都遇到另一个问题,命令无法在后台进程中运行,它作为前台进程运行.
如何在后台进程中将stderr和stdout重定向到/ var/log目录?
这是最初的文字.
test1
test2
Run Code Online (Sandbox Code Playgroud)
文中只有两行.
我想从第5行到第16行插入字符串序列.我用以下代码尝试过它.
for i in range(1,12)
echo ".item".i.","
endfor
Run Code Online (Sandbox Code Playgroud)
有两个问题需要解决.
1.echo命令.item1在endfor之前输出第一个字符串.
for i in range(1,12)
echo ".item".i.","
Run Code Online (Sandbox Code Playgroud)
2.如何将字符串序列创建为指定行:从vimscript编辑的文本中的第5到第16个?
期望的结果如下.
几乎完成了!
我得到的是如下命令 :pu! =map(range(1,12), 'printf(''item%1d'', v:val)').
他们两个都行不通.
:5pu! =map(range(1,12), 'printf(''item%1d'', v:val)')
:5,16pu! =map(range(1,12), 'printf(''item%1d'', v:val)')
Run Code Online (Sandbox Code Playgroud)
我想要的格式的最后一个问题是当光标位于第3行时,如何创建所需的输出?