这个题目计算花瓣落下的速度。距离一定送一个速度计算落下的时间。 如果速度送的是小于等于0 ,就返回0 . 1 def sakura_fall(v): 2 if v<=0 : 3 return 0 4 return 5*80/v 5 # your code here When it's spring ...
分类:
其他好文 时间:
2020-07-18 15:37:24
阅读次数:
58
1 #命名、变量、代码、函数 2 #this one is like your scripts with argv 3 def print_two(*args): 4 arg1, arg2 = args #将参数解包 5 print(f"arg1: {arg1}, arg2: {arg2}") 6 ...
分类:
编程语言 时间:
2020-07-18 13:33:56
阅读次数:
109
一、问题描述 Django中执行create database charset=utf8;命令报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your ...
分类:
数据库 时间:
2020-07-18 11:39:41
阅读次数:
133
原题目: Debug celsius converter Your friend is traveling abroad to the United States so he wrote a program to convert fahrenheit to celsius. Unfortunatel ...
分类:
其他好文 时间:
2020-07-18 11:23:22
阅读次数:
62
使用git 出现 Your account has been blocked 无法将本地仓库代码push到远程仓库 GitLab: Your account has been blocked. fatal: Could not read from remote repository. 解决方案如下: ...
分类:
其他好文 时间:
2020-07-18 11:22:31
阅读次数:
313
https://codeforces.com/problemset/problem/489/C C. Given Length and Sum of Digits... You have a positive integer m and a non-negative integer s. Your ...
分类:
其他好文 时间:
2020-07-17 22:18:10
阅读次数:
71
1、安装wampserver 2、在wampserver3下快速配置多站点多目录 https://www.cnblogs.com/WalAmar/p/6136110.html 3、复制目录下的.env.example 重命名为.env 配置好数据库: DB_CONNECTION=mysql DB_H ...
分类:
其他好文 时间:
2020-07-17 19:35:52
阅读次数:
76
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the total ...
分类:
其他好文 时间:
2020-07-16 12:06:09
阅读次数:
75
Git冲突:commit your changes or stash them before you can merge. 解决办法 http://www.aikaiyuan.com/8875.html 用git pull来更新代码的时候,遇到了下面的问题: 1 2 3 4 error: Your ...
分类:
其他好文 时间:
2020-07-16 11:59:47
阅读次数:
75
后台不挂断运行程序: nohup your_command & 同时指定输出日志文件并将错误重定向到标准输出: nohup your_command > your_out.file 2>&1 & 查看进程 ps -ef | grep "your_command" 杀死进程 kill -9 your_ ...
分类:
系统相关 时间:
2020-07-16 10:15:38
阅读次数:
95