摘要:
【前提】: win10下python3和python2共存环境,但是环境变量只配置了python3 【问题】: 用pip安装一个包执行pip2 install xxx的时候报错Fatal error in launcher: Unable to create process using '"' 执行 阅读全文
摘要:
import tempfile, os In [10]: a = tempfile.TemporaryDirectory() In [11]: print(a) <TemporaryDirectory '/var/folders/p5/1ct1qgn97y3bqgvls363hrj00000gn/T 阅读全文
摘要:
models.py from django.db import models from django.contrib.postgres.fields import ArrayFeild class TestInfoUser(models.Model): modify = ArrayField( mo 阅读全文
摘要:
排名问题可以用sorted将排好序的数组 利用enumerate()函数和for循环相结合 取出索引号加一 In [121]: for i, element in enumerate(seq): ...: print(i+1, element) ...: 1 one 2 two 3 three 描述 阅读全文
摘要:
In [31]: import urllib.parse as parse In [32]: a = parse.quote('abc分布式def') In [33]: print(a) abc%E5%88%86%E5%B8%83%E5%BC%8Fdef In [34]: b = parse.unq 阅读全文