摘要:
一句话:$post_data = get_post($post->ID, ARRAY_A);$slug = $post_data['post_name'];echo $slug; 阅读全文
摘要:
解决办法:给文字所在的div或者容器加上 float:left; 属性 阅读全文
摘要:
#!python# encoding: utf-8import collectionsdef default_factory(): return 'default value'd=collections.defaultdict(default_factory,foo='bar',ok='ok')print 'd:',dprint 'foo=>',d['foo']print 'ok=>',d['ok']print 'bar=& 阅读全文
摘要:
#!python# encoding: utf-8s = "哈哈"ss = u'哈哈'print s.decode('utf-8').encode('gbk')print ss.encode('gbk') 阅读全文