上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页
摘要: 之前学的: # -*- coding: utf-8 -*- """ Created on Sat May 30 13:54:31 2020 @author: Administrator """ #Series 系列 import numpy as np import pandas as pd #用数 阅读全文
posted @ 2020-10-10 20:48 3ξ 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 之前学的: # -*- 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 阅读全文
posted @ 2020-10-10 20:47 3ξ 阅读(54) 评论(0) 推荐(0) 编辑
摘要: tcp服务器: # -*- coding: utf-8 -*- """ Created on Tue May 26 21:39:55 2020 @author: Administrator """ import socket #创建套接字 tcp_server_socket=socket.socke 阅读全文
posted @ 2020-10-10 20:43 3ξ 阅读(105) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Sat Apr 25 18:15:36 2020 @author: Administrator """ import requests import binascii import json import datetime 阅读全文
posted @ 2020-10-10 20:36 3ξ 阅读(131) 评论(0) 推荐(0) 编辑
摘要: import json import requests # 翻译函数,word 需要翻译的内容 def translate(word): # 有道词典 api url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult= 阅读全文
posted @ 2020-10-10 20:23 3ξ 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 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, 阅读全文
posted @ 2020-10-10 20:18 3ξ 阅读(76) 评论(0) 推荐(0) 编辑
摘要: import requests, base64 # 百度AI开放平台鉴权函数 def get_access_token(): url = 'https://aip.baidubce.com/oauth/2.0/token' data = { 'grant_type': 'client_credent 阅读全文
posted @ 2020-10-10 20:15 3ξ 阅读(131) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image import sys # 将图片填充为正方形 def fill_image(image): width, height = image.size # 选取长和宽中较大值作为新图片的 new_image_length = width if width > h 阅读全文
posted @ 2020-10-10 20:12 3ξ 阅读(215) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Wed Apr 1 09:20:06 2020 @author: Administrator """ import time import random def getupmsg(): """ 获取正能量语句 :retur 阅读全文
posted @ 2020-10-10 20:04 3ξ 阅读(925) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ Created on Fri Apr 10 21:16:57 2020 @author: Administrator """ #执行代码测试 #控制程序自动执行 import os import datetime import time imp 阅读全文
posted @ 2020-10-10 20:03 3ξ 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页