码迷,mamicode.com
首页 >  
搜索关键字:python input raw_input    ( 165575个结果
2021/6/11 Bootstarp v3 浅记
'''布局容器 .container 2-8-2 布局,取其中8 .container-fluid 全局占满空间栅格系统 .row 将块级标签划分12等份 .col-xs/sm/md/lg-n 设置本标签占据份数 .col-xs/sm/md/lg-offset-n 设置从左向右移动的份数,后面无用份 ...
分类:其他好文   时间:2021-06-13 09:23:32    阅读次数:0
实验六 Python库应用编程与体验
import turtle turtle.setup(800,600) turtle.pencolor('pink') for i in range(4): for i in range(2): turtle.circle(80,90) turtle.left(90) turtle.right(90 ...
分类:编程语言   时间:2021-06-13 09:20:06    阅读次数:0
leetcode-python-汉明距离
1)取异或,然后计算1的个数 class Solution: def hammingDistance(self, x: int, y: int) -> int: t = x^y count = 0 while t: count += 1 t = t& t-1 return count ...
分类:编程语言   时间:2021-06-11 19:07:12    阅读次数:0
python之模块py_compile用法 (将py文件转换为pyc文件)
#python之模块py_compile用法(将py文件转换为pyc文件);二进制文件,是由py文件经过编译后,生成的文件. #办法一: import py_compile #加r前缀进行转义 py_compile.compile(r'D:\test.py')#py文件完整的路径. 办法二: #cm ...
分类:编程语言   时间:2021-06-11 19:06:54    阅读次数:0
ant design react之input框去除空格
1.创建一个util.js文件 export default { getValueFromEvent:(e)=>{ return e.target.value.replace(/(^\s*)|(\s*$)/g, ''); } } 2.引入使用 getValueFromEvent={util.getV ...
分类:其他好文   时间:2021-06-11 18:53:28    阅读次数:0
python:文件操作
打开文件 with open with open(file_name,access_mode,encoding) for line in f.readlines(): print(line.strip()) #调用read()会一次性读取文件的全部内容,如果文件有10G,内存就爆了,所以,要保险起见 ...
分类:编程语言   时间:2021-06-11 18:52:26    阅读次数:0
Python接口自动化之request请求封装
本文首发于:行者AI 我们在做自动化测试的时候,大家都是希望自己写的代码越简洁越好,代码重复量越少越好。那么,我们可以考虑将request的请求类型(如:Get、Post、Delect请求)都封装起来。这样,我们在编写用例的时候就可以直接进行请求了。 1. 源码分析 我们先来看一下Get、Post、 ...
分类:编程语言   时间:2021-06-11 18:51:28    阅读次数:0
python:yaml文件读取
yaml文件读取: def read_yaml(): with open("config.yaml", encoding='utf-8') as f: data = yaml.load(f.read(), Loader=yaml.FullLoader) print(data) ...
分类:编程语言   时间:2021-06-11 18:50:54    阅读次数:0
v-model
v-model:双数据绑定 <template> <div id="app"> <input type="text" v-model="name"> <p>{{name}}</p> </div> </template> <script> export default { data() { retur ...
分类:其他好文   时间:2021-06-11 18:49:57    阅读次数:0
python中获取json数组中的具体数值(调用百度AI返回的json数据)
最近在做软件杯的项目,想做一个人脸识别、对比的登录,当相似度超过某个数值时通过登录验证。 json数据: {'error_code': 0, 'error_msg': 'SUCCESS', 'log_id': 9975359915559, 'timestamp': 1623377294, 'cach ...
分类:编程语言   时间:2021-06-11 18:36:07    阅读次数:0
165575条   上一页 1 ... 31 32 33 34 35 ... 16558 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!