raw 字符串 (原始字符串) 格式: 在字符串前面加上 r r'字符串内容' r"字符串内容" r'''字符串内容''' r"""字符串内容""" # 作用: # 让转义符号 \ 无效 参考链接: https://blog.csdn.net/qulang4358/article/details/8 ...
分类:
编程语言 时间:
2020-06-05 09:15:13
阅读次数:
67
from graphene.types.generic import GenericScalar # 定义一个查询语句 class Query(ObjectType): generic = GenericScalar() def resolve_generic(self, info): return ...
分类:
其他好文 时间:
2020-06-05 09:14:24
阅读次数:
161
今天分享一个Python正则表达式匹配日期与时间的方法,因为最近在做的项目需要从字符串里面把日期时间提取出来。 ...
分类:
编程语言 时间:
2020-06-05 09:12:09
阅读次数:
116
在一日一技:实现函数调用结果的 LRU 缓存一文中,我们提到Python自带的LRU缓存lru_cache。通过这个装饰器可以非常轻松地实现缓存。 现在我们考虑下面这个应用场景:MongoDB中有100对id-用户名的对应关系,我从Redis中持续不断读取id,如果id能在MongoDB中找到对应关 ...
分类:
其他好文 时间:
2020-06-05 01:04:48
阅读次数:
93
using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApp ...
分类:
其他好文 时间:
2020-06-05 01:04:19
阅读次数:
110
包管理工具 ##yum 自己解决依赖关系 包 安装包 yum install 清除缓存 yum clean 列出所有的包 yum list 更新包 yum update 搜索 yum search 详细信息 yum info 列出yum仓库信息 yum repolist 重新安装 yum reins ...
分类:
系统相关 时间:
2020-06-05 00:53:20
阅读次数:
77
from google.colab import drive drive.mount('/content/gdrive') pip install --upgrade visdom pip install torchxrayvision #进入指定文件夹BreastCancer_FinalVersi ...
分类:
其他好文 时间:
2020-06-05 00:42:06
阅读次数:
91
pssh命令详解 pssh提供OpenSSH和相关工具的并行版本。包括pssh,pscp,prsync,pnuke和pslurp。该项目包括psshlib,可以在自定义应用程序中使用。pssh是python写的可以并发在多台机器上批量执行命令的工具,它的用法可以媲美ansible的一些简单用法,执行 ...
分类:
其他好文 时间:
2020-06-05 00:37:53
阅读次数:
82
https://python123.io/ws/demo.html <html><head><title>This is a python demo page</title></head> <body> <p class="title"><b>The demo python introduces s ...
分类:
Web程序 时间:
2020-06-05 00:36:28
阅读次数:
85
##删除指定元素 使用unset来删除某个数组元素,语法为: unset array[n] 实例 #!/bin/bash program=(c c++ c# h5 java SQL python PHP perl go .net js MATLAB) echo "高级语言有:${program[@] ...
分类:
编程语言 时间:
2020-06-05 00:36:10
阅读次数:
87