![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
saberly
咕噜咕噜咕噜~~噗:------
展开
-
python logging
import loggingyTime = 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 · 184 阅读 · 0 评论 -
leetcode 9. Palindrome Number
leetcode 9. Palindrome NumberTopic:Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.Example 1:Input: 121Output: trueExample...原创 2019-04-20 17:20:58 · 97 阅读 · 0 评论 -
python 使用crcmod计算crc8校验码
要用python计算crc8校验码,百度找到的自己编写的函数都不行,刚好看到有人介绍了一个第三方库可以计算crc校验码。import osimport binasciiimport crcmod.predefinedclass CRCGenerator(object): def __init__(self): self.module = 'crc-8-maxi...转载 2018-10-14 23:23:02 · 7996 阅读 · 2 评论 -
request,re, BeautifulSoup
视屏截图笔记原创 2017-09-09 16:17:15 · 195 阅读 · 0 评论 -
去掉字符串中的符号和空格
。。。原创 2017-08-31 11:28:34 · 1017 阅读 · 0 评论 -
总结:进制间的转换
...原创 2017-08-21 15:14:48 · 301 阅读 · 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 -= 1def fan(s): li = list(s) llen = len(li) sta原创 2017-08-05 16:50:36 · 3693 阅读 · 0 评论