码迷,mamicode.com
首页 >  
搜索关键字:def    ( 28626个结果
Python线程超时控制
# #!/usr/bin/env python # # coding: utf-8 # # https://www.cnblogs.com/scolia/p/6132950.html import threading import time import signal def set_timeout ...
分类:编程语言   时间:2021-01-11 10:54:45    阅读次数:0
直播5-实现计算器的功能
# 练习题3 # 编写函数, 实现计算器中加减乘除功能 # 例如:输入: 2+33 def computer(a, b, c): if b == "+": print(int(a) + int(c)) elif b == "-": print(int(a) - int(c)) elif b == " ...
分类:其他好文   时间:2021-01-11 10:39:55    阅读次数:0
直播6-写一个管理系统
# 函数版学员管理系统 class System1(): info = [] def info_print(self): print('请选择功能:' + '-' * 30) print(' 1、添加学员\t', '2、删除学员\t', '3、修改学员\t', '4、查询学员\n', '5、显示学员 ...
分类:其他好文   时间:2021-01-11 10:39:10    阅读次数:0
童年的记忆——如何用python写一个俄罗斯方块小游戏!
谈到记忆里的小游戏,俄罗斯方块是大家一定会想到的一款游戏,自己写出来的应该玩起来更有感觉,然后就写了一个俄罗斯方块的游戏给大家分享一下这个游戏的源码 先用python创建一个py文件 定义这次程序所需要的类 import sys import time import pygame from pyga ...
分类:编程语言   时间:2021-01-11 10:37:11    阅读次数:0
字符串转换成浮点数
double string_to_float(uint8_t *str){ uint8_t i,j,k,negative=0; #define s_temp str double result=0.0,result_1=0.0; for(i=0;i<10;i++) { j=str[i]; if(j= ...
分类:其他好文   时间:2021-01-11 10:28:36    阅读次数:0
pandas合并两个excel到一个excel
import os import pandas as pd # 合并两个excel到一个excel的不同sheet def merge_excel(p_path, s_path, m_path): writer = pd.ExcelWriter(m_path) if os.path.isfile(p ...
分类:其他好文   时间:2021-01-08 11:37:17    阅读次数:0
switch02
package com.lyc.struct;public class SwitchDemo02 { public static void main(String[] args) { String name = "史蒂夫"; //JDK7的新特性,表达式结果可以说字符串 //字符的本质还是数字 sw ...
分类:其他好文   时间:2021-01-08 11:21:00    阅读次数:0
移动端真机调试神器-spy-debugger
关于spy-debugger 一站式页面调试、抓包工具。远程调试任何手机浏览器页面,任何手机移动端webview(如:微信,HybridApp等)。支持HTTP/HTTPS,无需USB连接设备。 Language: English 特性 1、页面调试+抓包2、操作简单,无需USB连接设备3、支持HT ...
分类:移动开发   时间:2021-01-08 10:42:04    阅读次数:0
python 类的方法带的self理解
1.self指的是类实例对象本身(注意:不是类本身)。 class Person: def _init_(self,name): self.name=name def sayhello(self): print 'My name is:',self.name p=Person('Bill') pri ...
分类:编程语言   时间:2021-01-08 10:33:43    阅读次数:0
网易云音乐爬取分析
仅供个人学习研究使用 from Crypto.Cipher import AES # 非对称加密 import rsa # 对成加密 import execjs # PyExecJs可以使用Python模拟运行js代码 import base64 import requests first_para ...
分类:其他好文   时间:2021-01-07 12:42:58    阅读次数:0
28626条   上一页 1 ... 63 64 65 66 67 ... 2863 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!