
python
saberly
咕噜咕噜咕噜~~噗:------
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python logging
import logging yTime = time.strftime("%Y%m%d%H%M%S", time.localtime()) # yTime = time.strftime("%H%M%S", time.localtime()) currentPath = os.getcwd() Compute_name = socket.getfqdn(socket.gethostname(...原创 2020-01-11 09:21:06 · 240 阅读 · 0 评论 -
leetcode 9. Palindrome Number
leetcode 9. Palindrome Number Topic: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Input: 121 Output: true Example...原创 2019-04-20 17:20:58 · 127 阅读 · 0 评论 -
python 使用crcmod计算crc8校验码
要用python计算crc8校验码,百度找到的自己编写的函数都不行,刚好看到有人介绍了一个第三方库可以计算crc校验码。 import os import binascii import crcmod.predefined class CRCGenerator(object): def __init__(self): self.module = 'crc-8-maxi...转载 2018-10-14 23:23:02 · 8415 阅读 · 2 评论 -
request,re, BeautifulSoup
视屏截图笔记原创 2017-09-09 16:17:15 · 233 阅读 · 0 评论 -
去掉字符串中的符号和空格
。。。原创 2017-08-31 11:28:34 · 1136 阅读 · 0 评论 -
总结:进制间的转换
...原创 2017-08-21 15:14:48 · 348 阅读 · 0 评论 -
[python]反转英文句子
def reverse(li, start, wl): i, j = start, start + wl - 1 while i < j: li[i], li[j] = li[j], li[i] i += 1 j -= 1 def fan(s): li = list(s) llen = len(li) sta原创 2017-08-05 16:50:36 · 3757 阅读 · 0 评论