随笔分类 -  Python

摘要:from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_i 阅读全文
posted @ 2020-06-28 08:24 bamboo233 阅读(332) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-09-04 16:26 bamboo233 阅读(0) 评论(0) 推荐(0)
摘要:?匹配零次或一次前面的分组。 匹配零次或多次前面的分组。 +匹配一次或多次前面的分组。 {n}匹配 n 次前面的分组。 {n,}匹配 n 次或更多前面的分组。 {,m}匹配零次到 m 次前面的分组。 {n,m}匹配至少 n 次、至多 m 次前面的分组。 {n,m}?或 ?或+?对前面的分组进行非贪心 阅读全文
posted @ 2018-03-01 09:09 bamboo233 阅读(115) 评论(0) 推荐(0)
摘要:输入: tableData = [['apples','oranges','cherries','banana'], ['Alice','Bob','Carol','David'], ['dogs','cats','moose','goose']] 输出: 那么需要对列表进行如下处理: 1.转置 将 阅读全文
posted @ 2018-02-27 09:14 bamboo233 阅读(187) 评论(0) 推荐(0)
摘要:sudo apt get install xsel sudo apt get install xclip pip install gtk to install the gtk Python module. pip install PyQt4 to install the PyQt4 Python m 阅读全文
posted @ 2018-02-25 11:16 bamboo233 阅读(857) 评论(0) 推荐(0)
摘要:安装Python依赖包: [root@Python src] yum install zlib devel bzip2 devel openssl devel ncurses devel sqlite devel readline devel tk devel gcc make 下载Python源码 阅读全文
posted @ 2018-01-11 10:55 bamboo233 阅读(2373) 评论(0) 推荐(0)
摘要:pydoc os Help on module os: NAME os OS routines for Mac, NT, or Posix depending on what system we're on. FILE /usr/lib64/python2.6/os.py DESCRIPTION T 阅读全文
posted @ 2017-11-13 19:33 bamboo233 阅读(177) 评论(0) 推荐(0)
摘要:15.1. os — Miscellaneous operating system interfaces This module provides a portable way of using operating system dependent functionality. If you jus 阅读全文
posted @ 2017-11-13 10:09 bamboo233 阅读(563) 评论(0) 推荐(0)
摘要:lz提示一下,pycharm中的设置是可以导入和导出的,file>export settings可以保存当前pycharm中的设置为jar文件,重装时可以直接import settings>jar文件,就不用重复配置了。file -> Setting ->Editor1. 设置Python自动引入包 阅读全文
posted @ 2017-06-11 21:47 bamboo233 阅读(2070) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-05-24 09:13 bamboo233 阅读(2) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2017-04-24 13:57 bamboo233 阅读(0) 评论(0) 推荐(0)