- 虚拟环境的创建和修改,删除
撩本子高手
pythonpipconda
电脑有关环境的配置电脑版本为window10python==3.9.0Pip安装requirement.txt里面的第三方库pip安装requirement.txt的文件里面的第三方库,格式大概为如图所示。pipinstall-rrequirement.txtpip的虚拟环境的创建(使用方法为python3.x自带的venv)创建虚拟环境python-mvenvven_test#这里的话我是运用了
- centos下安装python3
i0208
centospython
Centos7默认自带了Python2.7版本,但是因为项目需要使用Python3.x你可以按照此文的三个方法进行安装.注:本文示例安装版本为Python3.5,一、Python源代码编译安装安装必要工具yum-utils,它的功能是管理repository及扩展包的工具(主要是针对repository)$sudoyuminstallyum-utils使用yum-builddep为Python3构
- python程序中缩进有利于程序代码的可读性_大学计算机D(重修课堂)-中国大学mooc-题库零氪...
weixin_39789094
第1章Python程序设计概述单元测验11、下列选项中,不属于Python语言特点的是A、面向对象B、运行效率高C、可读性好D、开源2、以下叙述正确的是A、Python3.x和Python2.x兼容B、Python语言只能以程序方式执行C、Python是解释性语言D、Python语言出现的晚,具有其他高级语言的一切优点3、下列关于Python的说法中,错误的是A、Python是从ABC语言发展起来
- python的GUI
for_choc
Python
由于在Python3.x上安装wx失败所以最后使用Tkinter实现,python2.x在这个模块上还是有挺多的区别的。创建并运行GUI程序的基本步骤:1.导入tkinter模块(Python3.x)结合2,我导入了部分需要的子模块fromtkinterimportTk,Button,Frame,Label,Entry,filedialog,2.创建一个顶层窗口对象需要一个放置所有组件的地方top
- python opencv cuda tensorrt pytorch之间的版本对应
YIACA
pythonopencvpytorch
python3.7opencv4.4cuda10.2tensorrt7xpytorch1.5DeepStream5.xOpenCV2.x:支持Python2.xOpenCV3.x:支持Python2.7、Python3.xOpenCV4.x:支持Python2.7、Python3.x、Python3.8+CUDA11.x:支持Python3.6、3.7、3.8、3.9CUDA10.2:支持Pyth
- arcgis api for js文字加载不出来的问题解决
这个问题在哪见过
javascriptarcGISgis
问题表现:文本symbol展示不出来问题分析:从arcgis默认的fonturl地址加载font文件失败解决方案:将pbf文件下载到本地步骤一:pbf文件下载使用python3.X下载pbf文件importsys,osfromurllib.requestimporturlopenimportjsonimporttracebackimporttime#baseUrl='https://static.
- 如何在Python中使用IP代理
天启代理ip
pythontcp/ip开发语言
在网络爬虫、数据抓取等应用场景中,使用IP代理可以有效避免IP被封禁,提高爬取效率。本文将详细介绍如何在Python中使用IP代理,帮助你在实际项目中灵活应用。准备工作在开始之前,你需要准备以下工具和资源:Python环境:建议使用Python3.x版本。代理IP信息:包含代理IP地址和端口号的列表。requests库:用于发送HTTP请求。步骤一:安装requests库首先,确保你的Python
- python3.x使用cxfreeze将.p打包成.exe
weixin_30596343
python开发工具
之前写了一个使用ffplay批量查看格式为h264的图片,每次抽帧后都要打开pycharm编译器来运行程序,然后才能正常查看图片,或者在其他没有安装python环境的电脑中运行,很不方便。为此,在网上找了些方法,发现也是说的一知半解的。因此,自己通过实践记录python3.x下怎么样把.py文件打包成.exe可执行文件,这样就可以直接修改文件内的图片个数就可以双击.exe程序来查看图片了。一、.p
- ubuntu系统下如何安装python
xp_fangfei
Linuxubuntupythonlinux
在Ubuntu系统下安装Python,有多种方法可供选择。以下是两种常见的方法:一、使用apt包管理器安装安装步骤如下:首先更新软件包列表sudoaptupdate安装Python3:输入以下命令以安装Python3(Ubuntu的默认Python版本可能是Python3.x的某个版本,具体版本取决于你的Ubuntu版本):sudoaptinstallpython3如果需要安装特定版本的Pytho
- 新书速览|Django 5 Web应用开发实战
全栈开发圈
sqlite数据库
构建未来,用Django5打造全新Web应用本书内容《Django5Web应用开发实战》集Django架站基础、项目实践、开发经验于一体,是一本从零基础到精通DjangoWeb企业级开发技术的实战指南。《Django5Web应用开发实战》内容以Python3.x和Django5版本为基础,从Django5构建项目开始,逐步深入讲述Django框架的各项功能要点,每个功能要点从源码角度分析,并在源码
- Python 爬虫从入门到精通
武帝为此
python爬虫python爬虫开发语言
一、爬虫简介爬虫用来自动获取网络上信息。Python因其丰富的第三方库和易读性,成为了爬虫开发的热门选择。二、环境配置与基本工具1.Python环境配置安装Python3.x版本并配置好环境。DownloadPython|Python.org2.常用库介绍requests:用于处理HTTP请求的库,可以发送GET、POST等请求并获取响应数据。BeautifulSoup:用于解析HTML或XML文
- chatgpt赋能python:Python编写二维码的完整指南
lvsetongdao123
ChatGptpythonchatgpt人工智能计算机
Python编写二维码的完整指南介绍二维码已经成为商业和消费市场中广泛使用的一种编码和交流方式了。它们可以用于广告、商家促销、门票、商标、展览会场馆等众多方面。Python作为一种常用的编程语言,也提供了多种方法来创建和解码二维码。本文将介绍如何使用Python编写二维码的方法。安装Python首先需要在电脑中安装Python,建议选择Python3.x版本,因为它拥有更好的性能和更多的功能。可以
- Python招聘信息爬虫+数据分析+可视化系统+薪资预测+岗位推荐(大数据项目)计算机毕业设计 源码下载
计算机毕业设计指导
boss直聘招聘信息爬虫+数据分析+可视化系统+薪资预测+岗位推荐(大数据项目)计算机毕业设计源码下载一、开发技术pycharm、MySQL数据库/sqlite3数据库、Python3.x版本、Flask框架、Scrapy框架、词云、echartsanconda3、chrome_driver1、开发框架前端htmlcssajax后端flaskrequestspandas数据库mysql二、功能招聘
- Python学习第三天——逻辑运算符、输入输出、流程控制
听风-_-
学习记录python
1.逻辑运算符not“非”,如果x为True,则返回False。and“与”,y为True,如果x为Fals额,xandy的结果为Flase。若x为True,则返回y的值。(判断结果为True)or“或”,y为False,如果x的值为True,则它的返回值为True,否则返回y的值。总结:当判断条件为True时,返回当前的值。优先级:not>and>or2.输入输出(1)输入python3.x中输
- python版本安装
weixin_33697898
python操作系统
目的本文目的在于,对于不熟悉Python的人,教你:1.从哪里找到可以下载到各种版本的包括Python2.x和Python3.x的最新版本的Python。高手请无视之。2.以及解释一下,如何选择合适你自己的版本的Python下载Python之前需要知道的事情先去看,通用的,如何下载软件方面的基础知识:【教程】软件开发基础知识之软件下载想要下载对应的,某个,你所需要的版本的Python之前:搞懂选P
- day02学习总结
__e145
day02学习总结1.初识python了解python历史,python2.x与python3.x不兼容python优点:简单和明确,做⼀件事只有⼀种⽅法。学习曲线低,与其他很多语⾔⽐上⼿更容易。开放源代码,拥有强⼤的社区和⽣态圈。解释型语⾔,完美的平台可移植性。⽀持两种主流的编程范式,可以使⽤⾯向对象和函数式编程。可扩展性和可嵌⼊性,可以调⽤C/C++代码也可以在C/C++中调⽤。代码规范程度⾼
- Python一览
山水泽
近期正在复习之前学过的python相关知识,借此机会将所了解到的python相关内容整理成一系列文章,方便自己后续回顾以及其他需要的人。该系列文章的路径将从python语言基础开始,结合一些实际上的使用例子,有普遍到特殊,由简单到复杂的这样的一个路径来完成。该系列文章都是基于python3.x。之后本文会更新Python一览系列的文章列表链接
- 系统学习Python——装饰器:函数装饰器-[对调用计时:测试细节]
von Neumann
系统学习PythonPythonpython装饰器函数类对象方法
分类目录:《系统学习Python》总目录文章《系统学习Python——装饰器:函数装饰器-[对调用计时:装饰器与每次调用计时]》中的脚本是如何使用其force设置来使它在Python2.X和Python3.X之间可移植。map内置函数在Python3.X中返回一个按需求生成结果的可迭代对象,但是在Python2.X中返回一个实际的列表。因此,Python3.X的map本身不能直接相比于列表推导的工
- Python中的数据类型
.咖啡加剁椒.
软件测试python开发语言软件测试自动化测试功能测试程序人生职场和发展
如果说python中的数据类型,那我们要从标准数据类型说起,在python中标准数据类型如下:数字类型:数字数据类型用于存储数值。他们是不可改变的数据类型,这意味着改变数字数据类型会分配一个新的对象。在python2.X中数据类型分的比较多,有int(有符号整型),long(长整型[也可以代表八进制和十六进制]),float(浮点型),complex(复数).到了python3.X中long类型被
- 《Python》Py源代码文件打包成无需环境就可运行的EXE程序
云先森
第一:前提必备(python3.x)第二:你要下载可以打包程序的第三方包,我用的是pip安装建议使用镜像下载,因为速度飞快:pipinstall-ihttps://pypi.tuna.tsinghua.edu.cn/simplepyinstaller第三:找到你需要打包为EXE可执行文件的Py文件,建议新建立个目录!第四:输入代码,直接运行!如果出现Successfully说明打包成功!pyins
- 【Python】虚拟环境miniconda安装(python3.7, python3.x)
比嗨皮兔
Pythonpython开发语言linux服务器
背景使用Python开发项目时,我们一般都需要安装环境,可能是在物理机上直接安装,也可能是在虚拟环境上安装,当前是怎么按照conda环境的示例,可以指定安装Python3.x的所有版本。安装首先,需要登录当前的地址https://repo.anaconda.com/miniconda/然后下载对应的安装脚本,假如需要在linuxx86_64上安装Python3.7,可以下载如图1所示的脚本,然后在
- python的pymysql使用
冬月廿拾
参考:https://www.cnblogs.com/liubinsh/p/7568423.html在python3.x中,可以使用pymysql连接数据库并进行对应操作pymysql安装pip3installpymysql数据库连接测试使用的数据库和表CREATEDATABASElianxi;CREATETABLE`coupon_info`(`id`bigint(20)unsignedNOTNU
- python基础教程+使用input函数输入
大写的C.
笔记
使用input函数输入在Python中,使用内置函数input可以接收用户的键盘输入。input函数的基本语法格式如下:variablc=input(“提示文字”)其中,variablc为保存输入结果的变量,双引号内的文宁用于提示要输入的内容。例如,想要接收用户输入的内容,并保存到变量tip中,可以使月下面的代码:tip=input(“请输入文字:”)在Python3.x中,无论输入数字还足字都将
- 系统学习Python——装饰器:类装饰器-[初探类装饰器和元类]
von Neumann
系统学习PythonPythonpython装饰器元类函数类对象
分类目录:《系统学习Python》总目录函数装饰器是如此有用,以至于Python2.X和Python3.X都扩展了这一模式,允许装饰器应用于类和函数。简而言之,类装饰器类似于函数装饰器,但它们是在一条class语句的末尾运行,并把一个类名重新绑定到一个可调用对象。同样,它们可以用来在类一创建后就管理它们,或者当随后创建实例的时候插人一层包装逻辑来管理实例。代码结构如下:defdecorator(a
- python map()函数
盖码范
描述map()会根据提供的函数对指定序列做映射。第一个参数function以参数序列中的每一个元素调用function函数,返回包含每次function函数返回值的新列表。语法map()函数语法:map(function,iterable,...)参数function--函数iterable--一个或多个序列返回值Python2.x返回列表。Python3.x返回迭代器。题目请将列表[1,2,3,
- python基础——字符编码
xiaohei07
python
如有兴趣了解更多请关注我的个人博客https://07xiaohei.com/前言:python2.x默认的字符编码是ASCII,默认的文件编码也是ASCII。python3.x默认的字符编码是unicode,默认的文件编码是utf-8。不同的编码之间不能互相识别,不能相互转化,会报错或出现乱码,所以一定要进行区别。因此,本篇介绍这三种出现的编码以及额外的中文GB2312编码。(一)ASCII编码
- import cPickle as pkl报错ImportError
In 2029
pythonpython
报错原因:在Python3.x版本中,cPickle已经被移除解决办法:将importcPickleaspkl替换成importpickleaspklimportcPickleaspkl在python2.X版本中使用importpickleaspkl在python3.X版本使用
- 系统学习Python——装饰器:函数装饰器-[对方法进行装饰:使用嵌套函数装饰方法]
von Neumann
系统学习PythonPythonpython装饰器类函数对象实例
分类目录:《系统学习Python》总目录如果想要函数装饰器在简单函数和类级别的方法上都能工作,最直接的解决办法在于使用前面文章介绍的状态保持方案之一:把自己的函数装饰器编写为嵌套的def,这样你就不会陷入单一的self实例参数既是包装器类实例,又是主体类实例了的困境。如下的替代方案用Python3.X的非局部变量进行了修补;如果要在Python2.X下使用,则可以重新编写它,为可更改的calls状
- Anaconda:Ubuntu下载指定虚拟环境中运行pip安装
eieieie
ubuntupython
简介为了方便管理环境,往往会安装Anaconda来管理虚拟环境。在使用时,发现有一个bug,即便是激活了一个虚拟环境,但是在运行pipinstall***时,依然会安装在base环境中。解决办法激活虚拟环境使用python3.x-minstall*来安装相应package,其中python3.x需要与虚拟环境中的python版本相对应Example指定python版本:python3.6-mpip
- 如何系统的自学Python
诗雅颂
python自学pypicondacode
1、官方文档Python的官方文档是最权威和详尽的学习资源。在官方文档中,你可以找到Python的语法规则、内置函数和模块、标准库等信息。如果你想深入学习Python,官方文档是必不可少的参考资料。Python的官方文档分为两个版本,分别是Python2.x和Python3.x。由于Python2.x已经停止更新,因此建议使用Python3.x的官方文档进行学习。以下是Python3.x的官方文档
- eclipse maven
IXHONG
eclipse
eclipse中使用maven插件的时候,运行run as maven build的时候报错
-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
可以设一个环境变量M2_HOME指
- timer cancel方法的一个小实例
alleni123
多线程timer
package com.lj.timer;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class MyTimer extends TimerTask
{
private int a;
private Timer timer;
pub
- MySQL数据库在Linux下的安装
ducklsl
mysql
1.建好一个专门放置MySQL的目录
/mysql/db数据库目录
/mysql/data数据库数据文件目录
2.配置用户,添加专门的MySQL管理用户
>groupadd mysql ----添加用户组
>useradd -g mysql mysql ----在mysql用户组中添加一个mysql用户
3.配置,生成并安装MySQL
>cmake -D
- spring------>>cvc-elt.1: Cannot find the declaration of element
Array_06
springbean
将--------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3
- maven发布第三方jar的一些问题
cugfy
maven
maven中发布 第三方jar到nexus仓库使用的是 deploy:deploy-file命令
有许多参数,具体可查看
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
以下是一个例子:
mvn deploy:deploy-file -DgroupId=xpp3
- MYSQL下载及安装
357029540
mysql
好久没有去安装过MYSQL,今天自己在安装完MYSQL过后用navicat for mysql去厕测试链接的时候出现了10061的问题,因为的的MYSQL是最新版本为5.6.24,所以下载的文件夹里没有my.ini文件,所以在网上找了很多方法还是没有找到怎么解决问题,最后看到了一篇百度经验里有这个的介绍,按照其步骤也完成了安装,在这里给大家分享下这个链接的地址
- ios TableView cell的布局
张亚雄
tableview
cell.imageView.image = [UIImage imageNamed:[imageArray objectAtIndex:[indexPath row]]];
CGSize itemSize = CGSizeMake(60, 50);
&nbs
- Java编码转义
adminjun
java编码转义
import java.io.UnsupportedEncodingException;
/**
* 转换字符串的编码
*/
public class ChangeCharset {
/** 7位ASCII字符,也叫作ISO646-US、Unicode字符集的基本拉丁块 */
public static final Strin
- Tomcat 配置和spring
aijuans
spring
简介
Tomcat启动时,先找系统变量CATALINA_BASE,如果没有,则找CATALINA_HOME。然后找这个变量所指的目录下的conf文件夹,从中读取配置文件。最重要的配置文件:server.xml 。要配置tomcat,基本上了解server.xml,context.xml和web.xml。
Server.xml -- tomcat主
- Java打印当前目录下的所有子目录和文件
ayaoxinchao
递归File
其实这个没啥技术含量,大湿们不要操笑哦,只是做一个简单的记录,简单用了一下递归算法。
import java.io.File;
/**
* @author Perlin
* @date 2014-6-30
*/
public class PrintDirectory {
public static void printDirectory(File f
- linux安装mysql出现libs报冲突解决
BigBird2012
linux
linux安装mysql出现libs报冲突解决
安装mysql出现
file /usr/share/mysql/ukrainian/errmsg.sys from install of MySQL-server-5.5.33-1.linux2.6.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
- jedis连接池使用实例
bijian1013
redisjedis连接池jedis
实例代码:
package com.bijian.study;
import java.util.ArrayList;
import java.util.List;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoo
- 关于朋友
bingyingao
朋友兴趣爱好维持
成为朋友的必要条件:
志相同,道不合,可以成为朋友。譬如马云、周星驰一个是商人,一个是影星,可谓道不同,但都很有梦想,都要在各自领域里做到最好,当他们遇到一起,互相欣赏,可以畅谈两个小时。
志不同,道相合,也可以成为朋友。譬如有时候看到两个一个成绩很好每次考试争做第一,一个成绩很差的同学是好朋友。他们志向不相同,但他
- 【Spark七十九】Spark RDD API一
bit1129
spark
aggregate
package spark.examples.rddapi
import org.apache.spark.{SparkConf, SparkContext}
//测试RDD的aggregate方法
object AggregateTest {
def main(args: Array[String]) {
val conf = new Spar
- ktap 0.1 released
bookjovi
kerneltracing
Dear,
I'm pleased to announce that ktap release v0.1, this is the first official
release of ktap project, it is expected that this release is not fully
functional or very stable and we welcome bu
- 能保存Properties文件注释的Properties工具类
BrokenDreams
properties
今天遇到一个小需求:由于java.util.Properties读取属性文件时会忽略注释,当写回去的时候,注释都没了。恰好一个项目中的配置文件会在部署后被某个Java程序修改一下,但修改了之后注释全没了,可能会给以后的参数调整带来困难。所以要解决这个问题。
&nb
- 读《研磨设计模式》-代码笔记-外观模式-Facade
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
* 百度百科的定义:
* Facade(外观)模式为子系统中的各类(或结构与方法)提供一个简明一致的界面,
* 隐藏子系统的复杂性,使子系统更加容易使用。他是为子系统中的一组接口所提供的一个一致的界面
*
* 可简单地
- After Effects教程收集
cherishLC
After Effects
1、中文入门
http://study.163.com/course/courseMain.htm?courseId=730009
2、videocopilot英文入门教程(中文字幕)
http://www.youku.com/playlist_show/id_17893193.html
英文原址:
http://www.videocopilot.net/basic/
素
- Linux Apache 安装过程
crabdave
apache
Linux Apache 安装过程
下载新版本:
apr-1.4.2.tar.gz(下载网站:http://apr.apache.org/download.cgi)
apr-util-1.3.9.tar.gz(下载网站:http://apr.apache.org/download.cgi)
httpd-2.2.15.tar.gz(下载网站:http://httpd.apac
- Shell学习 之 变量赋值和引用
daizj
shell变量引用赋值
本文转自:http://www.cnblogs.com/papam/articles/1548679.html
Shell编程中,使用变量无需事先声明,同时变量名的命名须遵循如下规则:
首个字符必须为字母(a-z,A-Z)
中间不能有空格,可以使用下划线(_)
不能使用标点符号
不能使用bash里的关键字(可用help命令查看保留关键字)
需要给变量赋值时,可以这么写:
- Java SE 第一讲(Java SE入门、JDK的下载与安装、第一个Java程序、Java程序的编译与执行)
dcj3sjt126com
javajdk
Java SE 第一讲:
Java SE:Java Standard Edition
Java ME: Java Mobile Edition
Java EE:Java Enterprise Edition
Java是由Sun公司推出的(今年初被Oracle公司收购)。
收购价格:74亿美金
J2SE、J2ME、J2EE
JDK:Java Development
- YII给用户登录加上验证码
dcj3sjt126com
yii
1、在SiteController中添加如下代码:
/**
* Declares class-based actions.
*/
public function actions() {
return array(
// captcha action renders the CAPTCHA image displ
- Lucene使用说明
dyy_gusi
Lucenesearch分词器
Lucene使用说明
1、lucene简介
1.1、什么是lucene
Lucene是一个全文搜索框架,而不是应用产品。因此它并不像baidu或者googleDesktop那种拿来就能用,它只是提供了一种工具让你能实现这些产品和功能。
1.2、lucene能做什么
要回答这个问题,先要了解lucene的本质。实际
- 学习编程并不难,做到以下几点即可!
gcq511120594
数据结构编程算法
不论你是想自己设计游戏,还是开发iPhone或安卓手机上的应用,还是仅仅为了娱乐,学习编程语言都是一条必经之路。编程语言种类繁多,用途各 异,然而一旦掌握其中之一,其他的也就迎刃而解。作为初学者,你可能要先从Java或HTML开始学,一旦掌握了一门编程语言,你就发挥无穷的想象,开发 各种神奇的软件啦。
1、确定目标
学习编程语言既充满乐趣,又充满挑战。有些花费多年时间学习一门编程语言的大学生到
- Java面试十问之三:Java与C++内存回收机制的差别
HNUlanwei
javaC++finalize()堆栈内存回收
大家知道, Java 除了那 8 种基本类型以外,其他都是对象类型(又称为引用类型)的数据。 JVM 会把程序创建的对象存放在堆空间中,那什么又是堆空间呢?其实,堆( Heap)是一个运行时的数据存储区,从它可以分配大小各异的空间。一般,运行时的数据存储区有堆( Heap)和堆栈( Stack),所以要先看它们里面可以分配哪些类型的对象实体,然后才知道如何均衡使用这两种存储区。一般来说,栈中存放的
- 第二章 Nginx+Lua开发入门
jinnianshilongnian
nginxlua
Nginx入门
本文目的是学习Nginx+Lua开发,对于Nginx基本知识可以参考如下文章:
nginx启动、关闭、重启
http://www.cnblogs.com/derekchen/archive/2011/02/17/1957209.html
agentzh 的 Nginx 教程
http://openresty.org/download/agentzh-nginx-tutor
- MongoDB windows安装 基本命令
liyonghui160com
windows安装
安装目录:
D:\MongoDB\
新建目录
D:\MongoDB\data\db
4.启动进城:
cd D:\MongoDB\bin
mongod -dbpath D:\MongoDB\data\db
&n
- Linux下通过源码编译安装程序
pda158
linux
一、程序的组成部分 Linux下程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 库文件:就是通常我们见到的lib目录下的文件 配置文件:这个不必多说,都知道 帮助文档:通常是我们在linux下用man命令查看的命令的文档
二、linux下程序的存放目录 linux程序的存放目录大致有三个地方: /etc, /b
- WEB开发编程的职业生涯4个阶段
shw3588
编程Web工作生活
觉得自己什么都会
2007年从学校毕业,凭借自己原创的ASP毕业设计,以为自己很厉害似的,信心满满去东莞找工作,找面试成功率确实很高,只是工资不高,但依旧无法磨灭那过分的自信,那时候什么考勤系统、什么OA系统、什么ERP,什么都觉得有信心,这样的生涯大概持续了约一年。
根本不是自己想的那样
2008年开始接触很多工作相关的东西,发现太多东西自己根本不会,都需要去学,不管是asp还是js,
- 遭遇jsonp同域下变作post请求的坑
vb2005xu
jsonp同域post
今天迁移一个站点时遇到一个坑爹问题,同一个jsonp接口在跨域时都能调用成功,但是在同域下调用虽然成功,但是数据却有问题. 此处贴出我的后端代码片段
$mi_id = htmlspecialchars(trim($_GET['mi_id ']));
$mi_cv = htmlspecialchars(trim($_GET['mi_cv ']));
贴出我前端代码片段:
$.aj