首页 \ 问答 \ 使用Wamp在启动时打开localhost(Open localhost on startup with Wamp)

使用Wamp在启动时打开localhost(Open localhost on startup with Wamp)

我是WAMP的新手,从Server2Go迁移,我想要检索S2G中的一些功能

我已将WAMP快捷方式放在Windows的Startup目录中,以便在Windows启动时启动WAMP。

就像S2G一样,我想在WAMP启动后立即在localhost打开chrome。

有人可以帮助我吗?

谢谢


I'm new to WAMP, migrating from Server2Go, I would want to retrieve some functionalities found in S2G

I have put the WAMP shortcut in Startup directory in Windows to start WAMP on Windows startup.

Just like S2G, I would like to open chrome at localhost right after WAMP startup.

Can anybody help me on that?

Thanks


原文:https://stackoverflow.com/questions/37260539
更新时间:2019-10-09 10:45

最满意答案

id()将返回对象的标识(通常实现为地址),这对于存在于同一时间点的两个对象是唯一的。 然而,检查两个对象是否相同的显而易见的方法是使用为此明确设计的运算符: is

即。

 if obj1 is obj2: 
     # Objects are identical.

id() will return the identity of the object (generally implemented as the address), which is guaranteed unique for two objects which exist at the same point in time. However the obvious way to check whether two objects are identical is to use the operator explicitely designed for this: is

ie.

 if obj1 is obj2: 
     # Objects are identical.

相关问答

更多
  • CPython的小对象分配器使用256 KB竞技场,分为4 KB池,其中给定池专用于特定分配大小(范围从8到512字节,步长为8)。 地址的低3位十六进制数字(12位)是到池中的对象偏移量。 在Objects / obmalloc.c中的大量注释中讨论了这种设计。 在64位Linux的情况下,ctypes函数指针对象是200(0xc8)字节,即sys.getsizeof(c_bar) == 200 ,因此一个池包含20个函数指针。 请注意,池中第一个分配的对象位于偏移量0x048而不是0x000。 池本身有 ...
  • while (...) { Pair pair(...); // calling constructor, creating object type of Pair. pairs[i] = &pair; i++; } pair分配有自动存储持续时间,并且在循环的每次迭代时超出范围。 您正在保存指向无效对象(其中一组)的指针。 如果你真的需要指针,你应该使用一组智能指针(当对象无法复制或副本很昂贵时这是真的),这可能根本不需要。 试试这个: vector pairs; / ...
  • Python手册有关于id() : 返回一个对象的“identity”。 这是一个整数(或长整型),在整个生命周期内,该对象被保证是唯一的,并且是常量的。 具有非重叠生命周期的两个对象可能具有相同的id()值。 (实现注:这是对象的地址。) 所以在CPython中,这将是对象的地址。 没有任何其他Python解释器的保证。 请注意,如果您正在编写C扩展名,则可以完全访问Python解释器的内部,包括直接访问对象的地址。 The Python manual has this to say about id() ...
  • chain.from_iterable返回一个可迭代对象 (其默认__repr__告诉您内存地址)。 你实际上必须迭代它来获取值。 例如: list(pwrst(ss)) 在正常情况下,您可能会执行以下操作: for item in pwrst(ss): ... chain.from_iterable returns an iterable object (whose default __repr__ tells you the memory address). You actually hav ...
  • id()将返回对象的标识(通常实现为地址),这对于存在于同一时间点的两个对象是唯一的。 然而,检查两个对象是否相同的显而易见的方法是使用为此明确设计的运算符: is 即。 if obj1 is obj2: # Objects are identical. id() will return the identity of the object (generally implemented as the address), which is guaranteed unique for two o ...
  • 这就是参考类型在Swift中的工作方式。 当你创建person1它就是Person类的一个实例。 person1然后是指向内存中代表该实例的位置的指针/引用。 然后你实例化var person2 = person1 ,所以person2成为另一个指向内存中相同位置的指针。 但它们是两个不同/独立的指针。 行person1 = Person()更改内存中person1指向的位置:类Person的新实例。 您尚未更新person2指向的实例。 That's how reference types work in ...
  • 如果您的目标是在同时运行的不同Python进程之间发送信息,请查看多处理或芹菜。 如果您只是希望能够保存/恢复/传递任意Python对象,请查看pickle和marshal 。 不要这样做,这是错误的和坏的! >>> x = 'asdd3r3' >>> b = id(x) >>> for key, value in globals().iteritems(): ... if id(value) == b: ... break ... Traceback (most recent ca ...
  • 实际上,对象的id是实现定义的,只要它是a) 在其生命周期内是唯一且恒定的(与此问题无关:这意味着如果第一个生命周期,两个对象可以具有相同的id结束了)。 CPython实现确实具有不变量,即对象始终固定在其原始内存位置,并且永远不会移动。 当涉及到与C的互操作性时,这具有巨大的好处,因为只要对象保持活动状态(通常只是递增的参考计数器),您就可以自由地传递指向该保持有效的指针。 鉴于此,CPython-interpreter只使用对象的虚拟内存地址作为它的id : 虚拟地址对于每个对象都是唯一的,因为任何两 ...
  • 你不能 - 没有办法从特定地址读取数据。 如果您没有(或无法检索)对您感兴趣的对象的引用,那么您就不走运了。 此外,即使您可以从给定地址读取数据,这也无济于事,因为除非您对原始对象有引用,否则无法知道要读取哪个地址。 然后,您不需要首先从内存中读取原始数据。 更新 - 如何干净地终止子进程 有一些方法可以在Python中的进程之间共享内存(例如多处理模块)。 但是,这对您的问题来说似乎有点过分。 由于你是从new_thread启动file2进程,最简单的解决方案可能是使用信号模块让new_thread告诉f ...
  • 我相信这包含了你问题的答案(尽管这不是一个'重复的问题')。 我可以在GDB中的'内存访问'上设置断点吗? I believe this contains the answer to your question (although it's not a 'duplicate question'). Can I set a breakpoint on 'memory access' in GDB?

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)