是否适合使用产品架构进行服务?(Would it be Appropriate to use the Product Schema for Services?)
我感兴趣的是标记具有所有服务的页面。
我的特定行业Schema不提供span
itemprop="itemOffered"
。 因此,我是否应该使每个服务页面反映产品架构而不是行业特定的项目类型,或者最好在服务页面上指定产品架构,然后在各个产品页面上使用行业特定的项目类型并列出产品使用makesoffer
?I am interested in tagging the page that features all the services.
My particular industry Schema doesn't offer the span
itemprop="itemOffered"
. Thus, should I make each the services page reflect the Product Schema rather than the industry specific itemtype, Or is it best to specify on the services page the product Schema and then on the individual product pages use the industry-specific itemtype and list the product usingmakesoffer
?
原文:https://stackoverflow.com/questions/19231346
满意答案
这里的例子是你可以适应和运作的:
https://docs.python.org/2/library/multiprocessing.html
您是否使用管理器对象来在进程之间共享内存。
在您的示例中,您使用管理器创建了一个字典,但是您使用正常字典将其删除
manager = Manager() d = manager.dict() # correct d = dict([(c, 0) for c in C]) # d is not a manager.dict: no shared memory
而是这样做(测试,编译)
d = manager.dict([(c, 0) for c in C])
Example here that you could adapt and which works:
https://docs.python.org/2/library/multiprocessing.html
You have you use a manager object to be able to share memory between processes.
In your example you create a dictionary using the manager but you kill it with a normal dictionary the line after
manager = Manager() d = manager.dict() # correct d = dict([(c, 0) for c in C]) # d is not a manager.dict: no shared memory
Instead do this (tested, compiles)
d = manager.dict([(c, 0) for c in C])
相关问答
更多在Python中多处理一个字典(Multiprocessing a dictionary in python)
Python multiprocessing.pool顺序运行进程(Python multiprocessing.pool sequential run of processes)
python:使用多处理和数据帧进行地理编码(python: using multiprocessing with a dataframe for geocoding)
字典到DataFrame(Dictionary into DataFrame)
Python 3控制多处理(Python 3 control multiprocessing)
如何用字典和数据帧编写多处理python代码(How to write multiprocessing python codes with dictionary and dataframe)
熊猫和多处理(Pandas and Multiprocessing)
python数据帧到字典,键值问题(python dataframe to dictionary, key value issue)
python字典到pandas dataframe返回空数据帧(python dictionary to pandas dataframe returns empty dataframe)
并行处理将字典写入多个csv文件(parallel processing write dictionary to multiple csv files)
相关文章
更多solr schema.xml 详解
关于 solr schema.xml 的配置说明
关于solr schema.xml 和solrconfig.xml的解释
Solr Schema.xml和solrconfig.xml分析
USER AND SCHEMA
SOLR 中 Schema.xml 的filedType 的一些属性的理解
初始SolrJ开发, schema.xml的配置与服务初始化.
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!