有没有类似的免费jquery插件
是否有任何merkle哈希树的python实现?我用Google搜索,找不到任何好的.任何人都可以为merkle哈希树建议一个好的库吗?
我想获取js文件注释的内容.我尝试使用代码
import re
code = """
/*
This is a comment.
*/
/*
This is another comment.
*/
"""
reg = re.compile("/\*(?P<contents>.*)\*/", re.DOTALL)
matches = reg.search(code)
if matches:
print matches.group("contents")
Run Code Online (Sandbox Code Playgroud)
我得到的结果是
This is a comment.
*/
/*
This is another comment.
Run Code Online (Sandbox Code Playgroud)
我如何单独获得评论?