发布时间:2021-03-11 17:27:02
#import re##########.的使用###############q = 'a'w = 'A'e = '_'r = '\n'pattern = '.'q1 = re.match(pattern,q)w1 = re.match(pattern,w)e1 = PayPal下载re.match(pattern,e)r1 = re.match(pattern,r)print(q1,'\n',w1,'\n',e1,'\n',r1)#########\d的使用######.........【阅读全文】
发布时间:2021-03-05 17:07:11
常规操作, 没什么好解释的. 缺模块的同学自行pip -install.import numpy as npimport timefrom matplotlib import pyplot as pltimport jsonimport copyimport osimport torchfrom torch import nnfrom torch import optimfrom torchvision import transforms, models, datasets.........【阅读全文】
发布时间:2021-02-24 16:16:31
"""Django settings for DjangoDemo2 project.Generated by 'django-admin startproject' using Django 3.1.5.For more information on this file, seehttps://docs.djangoproject.com/en/3.1/topics/settings/For the full list of settings and their values, seehttps://docs.djangoproject.c.........【阅读全文】
发布时间:2021-02-04 16:38:36
public class Student { private String name; private int age; private double score;}public class Main { public static void main(String[] args) { &nbs.........【阅读全文】
发布时间:2021-01-28 17:04:22
如何将json数据转换成python内部的数据类型展示一下zabbix的接口返回的json数据(数据经过dumps编码了,因为原数据为str类型,只有一行,不易读)js = json.dumps(get_alert(), indent=4, ensure_ascii=False)print(js)# get_alert()方法为获取json数据,编码后赋给js,打印js,结果如下:# indent =.........【阅读全文】