摘要:
之前学的: # -*- coding: utf-8 -*- """ Created on Sat May 30 13:54:31 2020 @author: Administrator """ #Series 系列 import numpy as np import pandas as pd #用数 阅读全文
摘要:
之前学的: # -*- coding: utf-8 -*- """ Created on Fri May 29 11:51:15 2020 @author: Administrator """ import numpy as np import random t1=np.array([2,3,4,5 阅读全文
摘要:
tcp服务器: # -*- coding: utf-8 -*- """ Created on Tue May 26 21:39:55 2020 @author: Administrator """ import socket #创建套接字 tcp_server_socket=socket.socke 阅读全文
摘要:
# -*- coding: utf-8 -*- """ Created on Sat Apr 25 18:15:36 2020 @author: Administrator """ import requests import binascii import json import datetime 阅读全文
摘要:
import json import requests # 翻译函数,word 需要翻译的内容 def translate(word): # 有道词典 api url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult= 阅读全文
摘要:
import matplotlib.pyplot as plt from matplotlib import animation import numpy as np import math print(math.pi) def drawHeart(): t = np.linspace(0, 3, 阅读全文
摘要:
import requests, base64 # 百度AI开放平台鉴权函数 def get_access_token(): url = 'https://aip.baidubce.com/oauth/2.0/token' data = { 'grant_type': 'client_credent 阅读全文
摘要:
from PIL import Image import sys # 将图片填充为正方形 def fill_image(image): width, height = image.size # 选取长和宽中较大值作为新图片的 new_image_length = width if width > h 阅读全文
摘要:
# -*- coding: utf-8 -*- """ Created on Wed Apr 1 09:20:06 2020 @author: Administrator """ import time import random def getupmsg(): """ 获取正能量语句 :retur 阅读全文
摘要:
# -*- coding: utf-8 -*- """ Created on Fri Apr 10 21:16:57 2020 @author: Administrator """ #执行代码测试 #控制程序自动执行 import os import datetime import time imp 阅读全文