函数与过程 函数(function):是有返回值的 过程(procedure):是简单、特殊并且没有返回值的 python严格意义上来说只有函数没有过程 1 def hello(): 2 print('hello world!') 3 4 5 temp = hello() 6 hello world ...
分类:
其他好文 时间:
2020-05-10 14:33:01
阅读次数:
49
namespace System.Text.RegularExpressions. ...
1 # 求1-2+3-4+5.....99的所有数的和(含等式) 2 s = "" 3 4 sum = 0 5 start = 1 6 7 while start < 100: 8 temp = start % 2 9 if temp == 1: 10 if start == 1: 11 s = s ...
分类:
编程语言 时间:
2020-05-10 11:09:43
阅读次数:
58
# 求1-2+3-4+5.....99的所有数的和(含等式)s = "" sum = 0start = 1 while start < 100: temp = start % 2 if temp == 1: if start == 1: s = str(start) else: s = s + "+ ...
分类:
编程语言 时间:
2020-05-10 11:03:41
阅读次数:
82
#!/usr/bin/env python import os import numpy as np import py7zr import shutil import pandas as pd import time #处理7Z分笔数据 path = r'G:\datas of status\ti ...
分类:
其他好文 时间:
2020-05-10 10:58:21
阅读次数:
190
# 输出 1-100 的奇数 start = 1 while start <= 100: temp = start % 2 if temp == 1: print(start) else: pass start += 1 # 输出1-100 偶数 start = 1 while start <= 1 ...
分类:
编程语言 时间:
2020-05-10 10:43:47
阅读次数:
52
我们经常在linux要查找某个文件,但不知道放在哪里了,可以使用下面的一些命令来搜索: which 查看可执行文件的位置。 whereis 查看文件的位置。 locate 配合数据库查看文件位置。 find 实际搜寻硬盘查询文件名称。 which命令的作用是,在PATH变量指定的路径中,搜索某个系统 ...
分类:
其他好文 时间:
2020-05-10 10:36:49
阅读次数:
56
之前有一个关于选课的练习,一直没有给实现,趁着明天休息,琢磨一下给弄出来,本来以为今天能搞定,看来是我想多了。 先看一下文件分布吧 没啥可多说的,今天完成了一部分,剩下的明天搞定。 bin文件下: import os,sys,logging,shelve BASE_DIR = os.path.dir ...
分类:
编程语言 时间:
2020-05-10 01:43:13
阅读次数:
95
一、Python解释器安装 官网下载python3.8, Step1:选择“Install Now”,并勾选下面的Add Python3.7 to PATH(此处是自动配置环境变量),之后默认安装完成 Step2: cmd 检查 python (查看环境变量配置情况) 二、PyCharm安装 官网下 ...
分类:
编程语言 时间:
2020-05-10 01:39:36
阅读次数:
84
题目: 解答: class Solution { public: int convertInteger(int A, int B) { int res = 0; int temp = A ^ B; while (temp!=0) { int lowbit = temp & (-temp); res+ ...
分类:
其他好文 时间:
2020-05-10 01:30:03
阅读次数:
54