python
pool_Sneaker
做事贵在“坚持”两字,但是又如何做到“坚持”两字呢?可能是 “小”目标+兴趣。
展开
-
单向链表反转
链表时间复杂度: Insert O(1) Delete O (1) search O(n ) 单向链表反转 class Solution: def __init__(self, elem, next_=None): self.var = elem self.next = next_ def reverseList(head): cur = head pre = None while cur: tmp = cur.ne原创 2021-04-10 15:11:41 · 54 阅读 · 0 评论 -
cx_oracle链接'ascii' codec can't encode characters in position 136-139
问题: python 使用 cx_Oracle连接数据库 oracle 'ascii' codec can't encode characters in position 136-139 解决 其实很简单 首先想到的python 的字符集问题,在: 在Python的Lib\site-packages文件夹下新建一个sitecustomize.py文件,内容为:#coding=utf8 impor...原创 2019-04-17 15:12:58 · 614 阅读 · 0 评论