anonymalias 最近的时间轴更新
anonymalias

anonymalias

V2EX 第 204148 号会员,加入于 2016-12-02 22:19:50 +08:00
anonymalias 最近回复了
@est 你应该好好看看 nignx 文档:“ If a server is the only server for a listen port, then nginx will not test server names at all (and will not build the hash tables for the listen port). However, there is one exception. If a server name is a regular expression with captures, then nginx has to execute the expression to get the captures.”
2016-12-04 21:36:00 +08:00
回复了 vtoexsir 创建的主题 Python 各位高手请看看怎么规避 Python2 中诡异的字符转义?
@omg21 源是错的,没法加,
2016-12-04 19:56:13 +08:00
回复了 vtoexsir 创建的主题 Python 各位高手请看看怎么规避 Python2 中诡异的字符转义?
可以加上个 r 、含义是: raw ,原始字符串,例如: pth= r'D:\mytemp\lunwenfcache\convert\20160907'
正如楼上所说,路径要用正斜线, windows 也是支持的, windows 当初在 dos 时代用反斜线就是一大败笔。。。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1002 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 23:14 · PVG 07:14 · LAX 16:14 · JFK 19:14
Developed with CodeLauncher
♥ Do have faith in what you're doing.