V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wangning3100  ›  全部回复第 1 页 / 共 1 页
回复总数  7
2017-04-13 16:20:51 +08:00
回复了 dadazhang 创建的主题 问与答 求正则表达式!!!
/^[a-z\d\u4e00-\u9fa5]+(?:-?[a-z\d\u4e00-\u9fa5]+)*$/i
2017-04-01 00:50:14 +08:00
回复了 ijiami 创建的主题 推广 程序员,你亮了!(有福利,手慢无)
这个推广贴居然只写了一句话介绍推广的产品,真是耿直~
2017-02-02 22:15:15 +08:00
回复了 redhatping 创建的主题 Python Python 的全局变量的理解。
@redhatping count += 1 === count = count + 1 ,重新声明了
2017-02-02 22:03:37 +08:00
回复了 redhatping 创建的主题 Python Python 的全局变量的理解。
@redhatping 因为你并没有在 example 函数里重新声明(初始化) a 和 know ,只是引用了而已
2017-02-02 22:00:58 +08:00
回复了 henryshen233 创建的主题 Linux /usr/share 里面没有 easy-rsa/文件夹
https://openvpn.net/index.php/download/community-downloads.html
Note that easy-rsa is no longer bundled with OpenVPN source code archives. To get it, visit the easy-rsa page on GitHub, or download it from our Linux software repositories.
2017-02-02 21:57:10 +08:00
回复了 redhatping 创建的主题 Python Python 的全局变量的理解。
第一个 example2 函数的第 2 行"been_called = True"把变量"been_called"定义成了该函数的局部变量,所以执行"print(been_called)"的时候"been_called"还没初始化,报 UnboundLocalError
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2858 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 13:49 · PVG 21:49 · LAX 06:49 · JFK 09:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.