码迷,mamicode.com
首页 >  
搜索关键字:f1    ( 2695个结果
面向对象中self可以代替整个对象的属性直接用来dump为改变后的对象
def __init__(self,name): self.name = name self.courses = [] self.flag = False with open('students','rb') as f1,open('students.bak','wb') as f2: ... ...
分类:其他好文   时间:2018-11-28 18:54:45    阅读次数:126
Fang Fang HDU - 5455 (思维题)
Fang Fang says she wants to be remembered. I promise her. We define the sequence FF of strings. F0 = ‘‘f",F0 = ‘‘f", F1 = ‘‘ff",F1 = ‘‘ff", F2 = ‘‘cff ...
分类:其他好文   时间:2018-11-28 01:08:26    阅读次数:174
改变GPS速度的小工具——第二版
补充上一版:实现随机生成速度值,完成替换并且写入文件 import randomdef chang_velocity() : with open('befor.gps' ,'r') as f,open('after.gps' ,'a') as f1: for line in f: data = li ...
分类:其他好文   时间:2018-11-28 00:28:35    阅读次数:146
IDLE提供的常用快捷键
IDLE提供的常用快捷键 快捷键 说明 适用于 F1 打开Python帮助文档 Python文件窗口和shell窗口均可用 Alt+P 浏览历史命令(上一条) 仅Python Shell窗口可用 Alt+N 浏览历史命令(下一条) 仅Python Shell窗口可用 Alt+/ 自动补全前面曾经出现 ...
分类:其他好文   时间:2018-11-27 20:58:03    阅读次数:1469
入门训练 Fibonacci数列
问题描述 Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。 当n比较大时,Fn也非常大,现在我们想知道,Fn除以10007的余数是多少。 Fibonacci数列的递推公式为:Fn=Fn-1+Fn-2,其中F1=F2=1。 当n比较大时,Fn也非常大,现在我们想知道, ...
分类:其他好文   时间:2018-11-27 11:15:17    阅读次数:174
装饰器原理-代码解释
# coding:utf-8 # 带参数装饰器 def f1(func): print('开始!') def f2(a): print(func) a() print('执行') return f2 @f1('666') def f3(): print('测试开始') # 无参数装饰器 def f1... ...
分类:其他好文   时间:2018-11-27 01:19:41    阅读次数:136
文件操作同时打开两个文件格式
with open('file/userinfo',encoding='utf-8') as f1,\ # open('file/userinfo.new',mode='a',encoding='utf-8') as f2: ...
分类:其他好文   时间:2018-11-24 14:09:30    阅读次数:102
codeforce 1077 F1 and F2 - DP
The only difference between easy and hard versions is the constraints. Vova likes pictures with kittens. The news feed in the social network he uses c ...
分类:其他好文   时间:2018-11-24 14:08:39    阅读次数:148
MAC iTerm2 如何快捷键入指定的字符串?
问题通过iterm2访问服务器时,通常会输入一些简单的密码信息,如何快捷键入这些简单的密码,避免频繁输入呢?解决方法可以通过iterm2提供的快捷键功能来解决:iterm2》preferences》keys》+然后选择一个快捷键,比如F1,**acton**选择**sendtext**,在下面的文本框中输入指定的文本,比如:password123123,然后点击ok退出即可。用法:比如在iterm
分类:系统相关   时间:2018-11-21 12:31:15    阅读次数:696
linux部署二:网卡配置和Yum源的替换
一,初次登陆: 1.登陆(用root登陆)(1).账户名root(2).密码 。。。。2.工作界面切换A.Ctrl + alt + F1 : 图形化界面B.Ctrl + alt + F2 F6 : 5个命令行界面3.ls 命令:浏览目录 cd 命令:切换目录 Ctrl +l 或 clear : 清屏 ...
分类:系统相关   时间:2018-11-20 01:24:09    阅读次数:209
2695条   上一页 1 ... 50 51 52 53 54 ... 270 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!