lass M(object): def __init__ (self): self.a=20 a=[M()] *10 print len(a) for phc in (a): print "[%d]"%phc.a a[0].a=30 for phc in (a): print "[%d]"%phc.a ============ I want to have an array of M object. but it seems that everytime I change a value in a[0], all other elements are changed too? what is wrong? how to correct it? thank you
You can select which OS to restart to every time you exit the OS: in MAC, system preference -> startup disk; in Windows, control panel -> bootcamp It took a very long time to load the Mac/Win selection menu after pressing Option key. I suspect it will also take long time if it becomes the default...
MAC, pressing Thanks. But it is not the way I want.
【在 z***e 的大作中提到】 : You can select which OS to restart to every time you exit the OS: in MAC, : system : preference -> startup disk; in Windows, control panel -> bootcamp : It took a very long time to load the Mac/Win selection menu after pressing : Option key. : I suspect it will also take long time if it becomes the default...
谢谢redpearl的耐心解答。以下是我发给F******[email protected]的邮件以及他们的回信, 希望对有类似情况的朋友们有所帮助。 I have some questions about applying for J1 visa waiver. If I have more than one J1 visas (issued for different programs), do you require separate waiver applications for each visa, or can I just apply once for waiver of all the J visas with one single No-Objection Letter from my home country of permanent residence, i.e. China? 以下是回信全文: Thank you for contacting the Student/Exchange Visitor Visa Center. You will apply for one (1) “no objection” waiver, and be required to submit all previous DS-2019s issued (from all previous programs participatied in) during the application process. For information on the ‘ J’ waiver process and how to apply, please visit our website at www.travel. state.gov/. We hope this information is helpful. Regards, Visa Specialist/vrw Public Inquiries Division U.S. Department of State Bureau of Consular Affairs f******[email protected] 如果没有理解错的话应该是只要递交一次waiver申请,就可以把之前所有的J1豁免掉。 一个J1一个J2的情况个人认为可能会有所不同。因为J2一般情况下是不能独立申请豁免 的,必须由持有J1的配偶或亲属申请,相当于“附属于”另外一个人的签证。这样,J2 需要由你“附属于”的那个人一并来申请豁免,而你自己的J1则需要亲自申请豁免,如 此说来需要申请2次也就可以理解了。 以上完全是个人推断,如需要确切的官方说法还需要咨询DOS,详细联系信息见http://travel.state.gov/visa/about/how/how_1463.html。本人发邮件过去第二天收到回复,证明他们的效率还是很高的。