一、流程控制 Python支持两种基本流程控制结构 分支结构: 根据条件选择不同的代码块执行 循环结构: 根据循环条件重复代码块 if语句用于分支结构 for-in, while用于循环结构 break, continue用于循环控制 二 、分支结构 1 if条件判断 格式 基本格式 if cond ...
分类:
编程语言 时间:
2021-02-15 11:55:35
阅读次数:
0
https://www.acwing.com/problem/content/1139/ #include <bits/stdc++.h> using namespace std; #define IO ios::sync_with_stdio(false);cin.tie(0); cout.tie ...
分类:
其他好文 时间:
2021-02-15 11:53:52
阅读次数:
0
原题 1 class Solution: 2 def summaryRanges(self, nums: List[int]) -> List[str]: 3 left,right,lens,ans = 0,0,len(nums),[] 4 while left < lens: 5 right = ...
分类:
其他好文 时间:
2021-02-15 11:47:09
阅读次数:
0
从[互不侵犯]一题析代码的锅 这个题,真的是,作为状压DP的敲门题,我从2020年1月份第一次见它, 到今年2月份重构过3、4遍。然后终于过了。 憨批行为之一 我有一次在寻找合法状态的时候,逐位枚举?甚至还枚举$1$的个数啊、搜索啊...... 正确的做法是 for(int s = (1 << n) ...
分类:
其他好文 时间:
2021-02-15 11:39:35
阅读次数:
0
i = 1while i <= 9: i += 1 j = 1 while j <= i-1: print("{}*{}=".format(j,i-1),j*(i-1),sep='',end=' ') j += 1 print('') for i in range(1,10): for y in r ...
分类:
编程语言 时间:
2021-02-10 13:39:52
阅读次数:
0
Hive 运行过程异常信息有时不能完全显示在终端上,此时可以用 Hive Debug 模 式进行调试 hive --hiveconf hive.root.logger=INFO,console 1、表不存在 FAILED: SemanticException [Error 10001]: Line ...
分类:
其他好文 时间:
2021-02-10 13:39:36
阅读次数:
0
An error occurred while installing rjb (1.6.4), and Bundler cannot continue. Make sure that `gem install rjb -v '1.6.4' --source 'https://gems.ruby-ch ...
分类:
其他好文 时间:
2021-02-10 13:00:46
阅读次数:
0
主要原因是自己为了下载加速配置了maven settings 的加速,但是问题来了,镜像使用了* 现象 自己项目配置的repositories 不能工作了 参考配置 settings.xml 加速 <mirror> <id>nexus-tencentyun</id> <mirrorOf>*</mir ...
分类:
其他好文 时间:
2021-02-09 12:41:48
阅读次数:
0
package main import ( "bufio" "fmt" "io" "log" "os" "os/exec" // "strings" ) func checkExe2(exeAdress string) { cmd := exec.Command("cmd.exe", "/c", " ...
分类:
其他好文 时间:
2021-02-09 12:32:53
阅读次数:
0
501 / 529 A HDU 5007 Post Robot 83 / 443 B HDU 5008 Boring String Problem !!! 111 / 784 C HDU 5009 Paint Pearls +++ 6 / 57 D HDU 5010 Get the Nut ??? ...
分类:
其他好文 时间:
2021-02-09 12:32:36
阅读次数:
0