安装
假设你要做一个博客的项目,打开命令行执行
composer create-project --prefer-dist laravel/laravel=5.5.* blog
其中:
5.*代表的是你所需要安装的laravel
blog是项目的地址,一般是运行该指令时候的位置,此处可写全路径或者先使用查到移动目录后,再运行该指令,就会将laravel安装在移动后的目录中
blog 是你的项目目录,安装完成后所有的文件都会在这个目录中。

做人咧,最紧要系开心🥳
假设你要做一个博客的项目,打开命令行执行
composer create-project --prefer-dist laravel/laravel=5.5.* blog
其中:
5.*代表的是你所需要安装的laravel
blog是项目的地址,一般是运行该指令时候的位置,此处可写全路径或者先使用查到移动目录后,再运行该指令,就会将laravel安装在移动后的目录中
blog 是你的项目目录,安装完成后所有的文件都会在这个目录中。

我们都知道 Laravel 扩展包的注册会对应用造成消耗。有一些扩展包是开发环境中专用,生产环境中并不会使用到,为了避免无用的负载, 必须严格控制其安装和加载。
安装开发专用扩展包时 必须 使用 --dev 参数,如:
composer require laracasts/generators --dev
开发专用的 provider 绝不在 config/app.php 里面注册,必须 在 app/Providers/AppServiceProvider.php 文件中使用如以下方式:
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register('Laracasts\Generators\GeneratorsServiceProvider');
}
}
转载自:https://laravel-china.org/docs/laravel-specification/5.5/development-specific-extensions-package/513
若有侵权,请务必通过邮箱与我联系
#include "pch.h"
#include <iostream>
#include <stdlib.h>
int main()
{
char n1[1500], n2[1500];
int a[1500] = {'\0'};
int b[1500] = {'\0'};
int c[3000] = {0};
int m, n, i, j, o;
printf("请输入被乘数:\n");
scanf_s("%s",&n1,128);
m = strlen(n1);
printf("请输入乘数:\n");
scanf_s("%s",&n2,128);
n = strlen(n2);
if(m>n){o = m;}else{o = n;}
//将char类型的元素转换成int类型
for (i = 0, j = m - 1; i < m; i++, j--) {
a[i] = n1[j] - '0';
}
//将char类型的元素转换成int类型
for (i = 0, j = n - 1; i < n; i++, j--) {
b[i] = n2[j] - '0';
}
//用数组a的每一位跟数组b进行乘法操作
for (i = 0; i < m;i++) {
for (j = 0; j < n; j++) {
c[i + j] = c[i+j]+(a[i] * b[j]);
}
}
//处理进位
for (i = 0; i < m + n; i++) { if (c[i] >= 10) {//若该位大于10则向前进该处元素的十位数
c[i + 1] = c[i+1] + c[i] / 10;//20=>2,10=>1
c[i] = c[i] % 10;//取个位数
}
}
//由于存储c时是逆序存储,所以要再次逆序输出
for (i = o-1; i >=0;i--) {
printf("%d",c[i]);
}
printf("\n");
system("pause");
}
#include "pch.h"
#include <iostream>
#include <stdlib.h>
int main()
{
char n1[1500], n2[1500];
int a[1500] = {'\0'};
int b[1500] = {'\0'};
int c[3000] = {0};
int m, n, i, j,o;
printf("请输入被加数:\n");
scanf_s("%s",&amp;n1,128);
m = strlen(n1);
printf("请输入加数:\n");
scanf_s("%s",&amp;n2,128);
n = strlen(n2);
for (i = 0, j = m - 1; i &lt; m; i++, j--) {
a[i] = n1[j]-'0' ;
}
for (i = 0, j = n - 1; i &lt; n; i++, j--) { b[i] = n2[j]-'0' ; } if (m &gt; n) { o = m; }
else { o = n; }
for (i = 0; i &lt; o;i++) {
c[i] = c[i]+(a[i] + b[i]);
}
for (i = 0; i &lt; o; i++) { if (c[i] &gt;= 10) {
c[i + 1] =c[i+1]+( c[i] / 10);
c[i] = c[i] % 10;
}
}
for (i = o-1; i &gt;=0;i--) {
printf("%d",c[i]);
}
printf("\n");
system("pause");
}
#include "pch.h"
#include <iostream>
#include <stdlib.h>
int main()
{
char n1[1500], n2[1500];
int a[1500] = { '\0' };
int b[1500] = { '\0' };
int c[3000] = { 0 };
int m, n, i, j, o,flag=0;
printf("请输入被减数:\n");
scanf_s("%s", &amp;n1, 128);
m = strlen(n1);
printf("请输入减数:\n");
scanf_s("%s", &amp;n2, 128);
n = strlen(n2);
for (i = 0, j = m - 1; i &lt; m; i++, j--) {
a[i] = n1[j] - '0';
}
for (i = 0, j = n - 1; i &lt; n; i++, j--) { b[i] = n2[j] - '0'; } if (m &gt; n) { o = m; }
else { o = n; }
for (i = 0; i &lt; o; i++) {
c[i] = c[i] + (a[i] - b[i]);
}
for (i = 0; i &lt; o; i++) {
if (c[i] &lt; 0 &amp;&amp; flag != 1) { flag = 1; }//记录正负号
if (c[i] &lt; 0 &amp;&amp; a[i] == 0) { c[i + 1] = c[i + 1] - 1; c[i] = 10 - b[i]; } if (b[i] == 0 &amp;&amp; c[i] &gt; 0) {
c[i] = 10 - a[i];
if (c[i + 1] &gt; 0) { c[i + 1] = c[i + 1] - 1; }
else {
c[i + 1] = c[i + 1] + 1;
}
}
if (c[i] &lt; 0) { c[i] = -1 * c[i]; } } if (flag == 1) { printf("-"); } for (i = o-1; i &gt;=0;i--) {
printf("%d",c[i]);
}
printf("\n");
system("pause");
}
#include "pch.h"
#include <iostream>
#include <stdlib.h>
int main()
{
char n1[1500];
int n2;
double a[3000] = { '\0' }, b[3000] = { 0 }, c = 0;
int m, n, i, j, o,flag=0;
printf("请输入被除数:\n");
scanf_s("%s", &amp;amp;n1, 128);
m = strlen(n1);
printf("请输入除数:\n");
scanf_s("%d", &amp;amp;n2, 128);
if (n2 == 0) { printf("除数不可为0\n"); system("pause"); exit(0); }
for (i = 0, j = m - 1; i &amp;lt; m; i++, j--) {
a[i] = n1[j] - '0';
}
for (i = 0,j=0; i &amp;lt; m;i++,j++) { b[i] = b[i] + (a[i] / n2); for (o=j; o&amp;gt;0; o--) {
b[i] = b[i] * 10;
}
}
for (i = 0; i&amp;lt;m; i++) {
c = c + b[i];
}
printf("%lf",c);
printf("\n");
system("pause");
}
原理:使用被除数的每一位进行除法运算,并将最终结果sum起来
原代码:
scanf_s("%s",&a)
出现该报错时,是因为启用了scanf_s时没有填写第三参数
解决该bug的办法:
scanf_s("%s",&a,128)
PS:第三参数指的是最多可读取的字符数
APP_NAME=Laravel
|————————————————————————–
| Application Name-应用名称
|————————————————————————–
|
| 这个值是用来命名你的应用的. 这个值可以被框架用作警告时(?)被调用
| 同时这个这个值可以被应用或包应用
|
APP_ENV=local
|————————————————————————–
| Application Environment-应用环境
|————————————————————————–
|
| 这个Envirment用于定义你的引用在何处运行
| 这可能决定你会如何去配置多个应用程序的配置
| 在’.ENV’中可以设定该值
|
APP_KEY=base64:123213453dshkjch
|————————————————————————–
| Encryption Key-加密秘钥
|————————————————————————–
|
| 该秘钥将用于Laravel的加密函数并且该秘钥应是随机且有32位长
| 若不满足上述条件的话,使用加密函数加密的字符串将是不安全的
| 请在部署前先使用Artisan命令生成一个秘钥
|
APP_DEBUG=true
|————————————————————————–
| Application Debug Mode-应用程序调试模式
|————————————————————————–
|
| 当你开启该模式后,每当出现错误时,将会显示详细的错误提示(还有堆栈崩溃的位置)
| 提示(还有堆栈崩溃的位置).若您选择关闭该功能,系统将会使用一个简单的通用页来
| 代替.使用True来开启,使用False来关闭.
|
APP_LOG_LEVEL=debug
|————————————————————————–
| Logging Configuration-日志配置
|————————————————————————–
|
| 在这里你将就可以为你的应用配置日志记录服务,为此Laravel使用了Monolog PHP日志库.
| 使用该日志库将为您提供多样化的日志记录选项,并且你将可以使用强大的日志处理程序,
| 以及强大的日志格式化程序
|
| 可选的选项: “single”, “daily”, “syslog”, “errorlog”
|
APP_URL=http://localhost
|————————————————————————–
| Application URL-应用程序URL
|————————————————————————–
|
| 该URL是被用于在Artisan控制台模式中生成正确的网页链接的
| 在执行Artisan任务前,你应该设定该链接为你的应用程序的根目录地址
|
*:if(a==2.34){}是不行的,除非把2.34当成字符串来存储,再进行判断才行
**:例:case a>b:是错误的
如果Console报错出现 CORS 头缺少 ‘Access-Control-Allow-Origin’
主要是因为跨域的锅,目前已知的解决办法有以下两种(maybe):
<meta http-equiv="Access-Control-Allow-Origin" content="*">
本项目是基于之前的steambot的代码库开发的饰品市场。
一套具备商城系统与机器人系统的一体化方案
Github地址:https://github.com/7gugu/umarket
功能:
1.查询玩家的库存
2.对玩家的库存进行自动化托管与交易
3.支持支付宝与Uwallet双支付系统
4.商城可部分自定义
5.饰品交易系统
6.支持Windows平台
下面是预览图:




不忘初心,最终还是选择把项目开源出来让大家使用.自我承认我的代码真的很烂,但我也在慢慢进步,希望有朝一日能得到dalao的认可,项目将于11.11推送至Github,届时会在此放出链接地址.owo
wooooo,感谢大家的支持,不知不觉URP就达成500次安装,我也升入大学开始新的征程啦!就让我们继续前行下去吧!Umarket我可能不会开源,而是转成商业项目了,帮自己挣点外快owo,但机器人部分的API我会继续维护下去的.
还有在学校要进组织开始学习了,还是有点紧张呀Orz,不过我会继续努力做出更好的项目的
PEACE
代码里在option 里加了onclick事件属性,平时多在firefox浏览器下开发,测试时发现以谷歌为内核的浏览器onclick事件无作用,查了下资料,在select里面用onchange就好了,如下:
<select onchange="update_show(this.options[this.selectedIndex].value)"></select>
mkdir $HOME/testFolder
(home是用户地主目录,登录后缺省进入的目录,比方说有个用户叫wang,那他的地主目录就是/home/wang,也能够用~wang表示。其实如果在安装Linux时选择中文版,桌面的目录就在$home目录下的“桌面目录”。)
cd $HOME/testFolder
cd ../
mv $HOME/testFolder /var/tmp
rm -rf /var/tmp/testFolder
ls /etc
(/etc 目录默认是 *nix 系统的软件配置文件存放位置)
touch ~/testFile
ls ~
cp ~/testFile ~/testNewFile
y 后回车确认删除rm ~/testFile
cat ~/.bash_history
root 的记录grep 'root' /etc/passwd
linux 的记录grep -r 'linux' /var/log/
cat /etc/passwd | grep 'root'
ssh 的目录(不包括子目录)ls /etc | grep 'ssh'
echo 'Hello World' > ~/test.txt
ping -c 4 cloud.tencent.com
netstat -lt