当前位置:首页 > 日记本 > 正文内容

icms 标签收集

zhangchap2年前 (2022-06-13)日记本215
  1. 带序号文章


<h4>热门文章</h4>
    <ul>
    <!--{iCMS:article:list loop="true" row="10" orderby="week"}-->
    <li><i class="red"><!--{$article_list.rownum}--></i><a href="<!--{$article_list.url}-->" target="_blank"><!--{$article_list.title}--></a></li>
    <!--{/iCMS}-->
    </ul>

2. 随机数字

<!--{'1'|rand:'8'}-->


分享给朋友:

相关文章

python补全网址代码示例

from urllib.parse import urljoin absurl = urljoin(backend,url) #backend:根...

python 发布文章 随机分类(choice)

from random import choice catid = choice([5,6]) #choice 函数从列表中随机提取...

Python 正则表达式 带分组的替换 \g

import re re.sub(r'([^a-z]*)[a-z]([^a-z]*)', '\g<1>\g<2>',wor...

python提高运行速度numba.jit

使用numba.jit。 numba可以将 Python 函数 JIT 编译为机器码执行,大大提高代码运行速度。import time def computeSum(size:&...

python下elasticsearch简单接口操作

# -*- coding:utf-8 -*- # elasticsearch 默认算法bm25 from elasticsearch&n...

python退出程序,终止运行

python退出程序运行方式常用的两种:os._exit() 和 sys.exit()1. sys.exit()import os,sys try:    ...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。