V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  anonymalias  ›  全部回复第 1 页 / 共 1 页
回复总数  3
@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 月 4 日
回复了 vtoexsir 创建的主题 Python 各位高手请看看怎么规避 Python2 中诡异的字符转义?
@omg21 源是错的,没法加,
2016 年 12 月 4 日
回复了 vtoexsir 创建的主题 Python 各位高手请看看怎么规避 Python2 中诡异的字符转义?
可以加上个 r 、含义是: raw ,原始字符串,例如: pth= r'D:\mytemp\lunwenfcache\convert\20160907'
正如楼上所说,路径要用正斜线, windows 也是支持的, windows 当初在 dos 时代用反斜线就是一大败笔。。。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5856 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 02:30 · PVG 10:30 · LAX 19:30 · JFK 22:30
♥ Do have faith in what you're doing.