{"id":752,"date":"2013-04-24T23:11:44","date_gmt":"2013-04-25T03:11:44","guid":{"rendered":"http:\/\/blog.shutingg.net\/?p=752"},"modified":"2013-04-24T23:18:07","modified_gmt":"2013-04-25T03:18:07","slug":"the-beauty-of-python","status":"publish","type":"post","link":"https:\/\/www.shutingg.net\/blog\/2013\/04\/24\/752\/","title":{"rendered":"The beauty of Python"},"content":{"rendered":"<p>Python is yet another scripting language. It is easier to learn than Ruby (more human readable). Like all scripting languages, it doesn&#8217;t need to be compiled to run. It can be written and executed on the fly.<\/p>\n<p>The most obvious characteristic of Python is it uses indents to indicate structure. Many other programs use closure {}.<\/p>\n<p>Python is an Object Oriented language but it doesn&#8217;t need to specify the type of object or method when creating it. It may seem odd at first. But if Java can have something called Generic and check type of object using instanceof, why can&#8217;t we make it even more generic and just assume everything is object? Yes, you lose an informing\u00a0signature, which may be a problem when you are developing an enterprise app which someone else is going to use with absolutely no intention of understanding your what it is. But for a small project, it does save you lots of effort for the initial setup.<\/p>\n<p>In this article I am going to talk about what I like about Python. I am primarily comparing Python to Java. I thought of naming this article Python: the Good Part. But honestly I am new to the Python world. Thus I will leave this title to the experts who are going to write the book.<\/p>\n<p><strong>Polymorphism<\/strong><\/p>\n<ul>\n<li>No need to define super class or interface to use polymorphism<\/li>\n<\/ul>\n<p>If all of the operations inside a function work with a given type, then the function works with that type.<br \/>\ne.g. the built-in function sum, which adds the elements of a sequence, works as long as the elements of the sequence support addition.<br \/>\nBenefit: You don&#8217;t need to create a interface for every class that use by others just to make sure that *if* you have a different implementation in future the others can switch to that.<\/p>\n<ul>\n<li>No need of overloading (aka. repeating signitures just for the same thing)<\/li>\n<\/ul>\n<p>Often, in Java, you need to create several methods with the same name which differ from each other in the type of the input and the output of the function. It is known as overloading.<br \/>\nWe need this because we anticipate that users of the method may not want to take the troubles to provide all the parameters needed. And we want to provide default values to save users the troubles.<br \/>\nHowever, we end up repeating ourselves. Even though we don&#8217;t need to repeat the code, we have to create multiple signitures for the same function.<br \/>\nIn Python, you only need to write it once.<br \/>\ne.g. inside class Time<\/p>\n<p>def __init__(self,hour=0,minute=0,second=0):<br \/>\nself.hour=hour<br \/>\nself.minute=minute<br \/>\nself.second=second<\/p>\n<p>Now user can call initialize the method with no parameter:<br \/>\ntime=Time()<br \/>\nwhich creates a Time instance with hour, minute, and second all set to 0<br \/>\nThanks to the optional parameters feature in Python!<\/p>\n<ul>\n<li>Note:\u00a0The first parameter of a method is the object instance itself.<\/li>\n<\/ul>\n<p>So a method definition<br \/>\ndef print_time(time)<br \/>\nis equvilent to a Java defnition<br \/>\nvoid print_time()<br \/>\nIn Java, you use &#8220;this&#8221; to refer to current instance; In Python, you use the name of the first parameter in your method signiture to refer to it.<br \/>\nUsually you will name the first parameter self.<\/p>\n<p><strong>A String is a sequence<\/strong><br \/>\nBecause why not?<br \/>\nWhy do you need a charAt method when you can get a letter in a String just like getting an element in an array?<br \/>\ne.g.<br \/>\nfruit=&#8217;banana&#8217;<br \/>\nletter = fruit[1]<\/p>\n<p>Why do you need to go through so much trouble to get a sub String or a sub array?<br \/>\ne.g.<br \/>\ns=&#8217;Monty Python&#8217;<br \/>\nprint[6:12]<\/p>\n<p>This prints the 6 to 11 letter.<br \/>\nNow you can forget Arrays.copyOfRange or System.arrayCopy<\/p>\n<p>One more thing about String.<\/p>\n<p>Do you remember how two exactly same Strings don&#8217;t equal to each other when you use &#8220;==&#8221; in Java? A common mistake for newbees as well as everybody who hasn&#8217;t gone through enough pain making this mistake.<\/p>\n<p><em id=\"__mceDel\"> No more in Python<\/em><\/p>\n<p><em id=\"__mceDel\"><em id=\"__mceDel\"><em id=\"__mceDel\">a=&#8221;banana&#8221;<\/em><br \/>\nb=&#8221;banana&#8221;<br \/>\na is b<br \/>\na==b<\/em><\/em><\/p>\n<p><em id=\"__mceDel\"><em id=\"__mceDel\"><em id=\"__mceDel\"><em id=\"__mceDel\"><em id=\"__mceDel\">Yes, they both return true<\/em><\/em><\/em><\/em><\/em><\/p>\n<p><strong>Tuples<\/strong><br \/>\nYou can understand Tuples as immutable lists. What does it bring?<\/p>\n<ul>\n<li>You don&#8217;t need a temporary variable to swap the values of two variables.<\/li>\n<\/ul>\n<p>e.g.<br \/>\na, b = b, a<br \/>\nThat will work.<\/p>\n<ul>\n<li>Return multiple values<\/li>\n<\/ul>\n<p><em id=\"__mceDel\">Why would you want to compute twice when you can get the quotient and remainder in one short?<br \/>\ne.g.<br \/>\nquot, rem = divmod(7,3)<\/em><\/p>\n<ul>\n<li>Looping with multiple values<\/li>\n<\/ul>\n<p><em id=\"__mceDel\">e.g.<br \/>\nt=[(&#8216;a&#8217;,0),(&#8216;b&#8217;,1),(&#8216;c&#8217;,2)]<br \/>\nfor letter, number in t:<br \/>\nprint number, letter<br \/>\n<\/em><\/p>\n<p><em id=\"__mceDel\"><em id=\"__mceDel\">Oh, yes. You can surely do that in Java. Just define a class with the variables letter and number, create the objects of that class and dump them into the list. It is just a line v.s. a class definition plus multiple object initializations.<\/em><\/em><\/p>\n<ul>\n<li>Zip: you have multiple sequences (String, list, Tuples) and you want to pair the elements together.<\/li>\n<\/ul>\n<p><em id=\"__mceDel\">e.g.<\/em><\/p>\n<p><em id=\"__mceDel\"> s=&#8217;abc&#8217;<br \/>\nt=[1,2,3]<br \/>\nzip(s,t)<br \/>\n<\/em><\/p>\n<p><em id=\"__mceDel\">It gives you [(&#8216;a&#8217;,1),(&#8216;b&#8217;,2),(&#8216;c&#8217;,3)]<\/em><\/p>\n<ul>\n<li>A Tuple can also represent an entry in a map.<\/li>\n<\/ul>\n<p><em id=\"__mceDel\">We just don&#8217;t need that many different types of things.<\/em><\/p>\n<ul>\n<li>You can use a Tuple as a key.<\/li>\n<\/ul>\n<p><em id=\"__mceDel\">Similar way in Java is to use an object as key. Again, you need to define the class of object first.<br \/>\n<\/em><\/p>\n<p><strong>Something else<\/strong><\/p>\n<p><em id=\"__mceDel\">Any program that you can launch from the shell can also be launched from Python using a pipe (an object represents a running program)<br \/>\ne.g.<br \/>\ncmd=&#8217;ls -l&#8217;<br \/>\nfp=os.popen(cmd)<\/em><\/p>\n<p>A functionality very useful for system admin.<br \/>\nJava doesn&#8217;t support it probably because it isn&#8217;t necessarily running on a system supporting that shell.<\/p>\n<p>&nbsp;<\/p>\n<p>All in all, Python is a language easy to learn and fast to develop. While enterprises need something as heavy as Java, Python is valuable to those who want things to be done quick. From what I see, Python is becoming a popular language in the Big Data world because of the ease of development and the good libraries for data manipulation and analysis. As Big Data becomes popular, Python is going to be a\u00a0promising language in future.<\/p>\n<p>FYI, I highly recommend the book <a href=\"http:\/\/www.amazon.com\/Think-Python-ebook\/dp\/B008XNSEYK\/ref=sr_1_1_bnp_1_kin?ie=UTF8&amp;qid=1366859795&amp;sr=8-1&amp;keywords=think+python\" target=\"_blank\">Think Python by Allen B. Downey<\/a> to the beginners.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/blog.shutingg.net\/wp-content\/uploads\/2013\/04\/s11363793.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"762\" data-permalink=\"https:\/\/www.shutingg.net\/blog\/2013\/04\/24\/752\/s11363793\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2013\/04\/s11363793.jpg?fit=318%2C417&amp;ssl=1\" data-orig-size=\"318,417\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"s11363793\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2013\/04\/s11363793.jpg?fit=318%2C417&amp;ssl=1\" class=\"aligncenter size-medium wp-image-762\" alt=\"s11363793\" src=\"https:\/\/i0.wp.com\/blog.shutingg.net\/wp-content\/uploads\/2013\/04\/s11363793-228x300.jpg?resize=228%2C300\" width=\"228\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2013\/04\/s11363793.jpg?resize=228%2C300&amp;ssl=1 228w, https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2013\/04\/s11363793.jpg?w=318&amp;ssl=1 318w\" sizes=\"auto, (max-width: 228px) 100vw, 228px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python is yet another scripting language. It is easier to learn than Ruby (more human readable). Like all scripting languages, it doesn&#8217;t need to be compiled to run. It can be written and executed on the fly. The most obvious characteristic of Python is it uses indents to indicate structure. Many other programs use closure<span class=\"dots\"> &hellip; <\/span><span class=\"link-more\"><a href=\"https:\/\/www.shutingg.net\/blog\/2013\/04\/24\/752\/\" class=\"more-link\">Read more <span class=\"screen-reader-text\">&#8220;The beauty of Python&#8221;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[71],"tags":[157,243,242,21],"class_list":["post-752","post","type-post","status-publish","format-standard","hentry","category-technology-2","tag-en","tag-programming","tag-python","tag-technology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1w1qi-c8","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2179,"url":"https:\/\/www.shutingg.net\/blog\/2025\/06\/25\/2179\/","url_meta":{"origin":752,"position":0},"title":"\u4ec0\u9ebc\u7b56\u7565\u5728\u83ef\u723e\u8857\u771f\u6b63\u6709\u6548\uff1f","author":"Charlotte Guan","date":"June 25, 2025","format":false,"excerpt":"\u300a\u83ef\u723e\u8857\u7684\u81f4\u52dd\u4e4b\u9053\u300b\uff08What Works on Wall Street\uff09\u7e3d\u7d50\u4e86\u5404\u7a2e\u6d41\u884c\u7684\u9078\u80a1\u7b56\u7565\u7684\u6709\u6548\u6027\uff0c\u8b93\u6211\u5011\u770b\u770b\uff0c\u57fa\u65bc\u516b\u5341\u9918\u5e74\u6578\u64da\uff0c\u771f\u6b63\u6709\u6548\u7684\u9078\u80a1\u7b56\u7565\u662f\u4ec0\u9ebc\uff01","rel":"","context":"In &quot;\u6295\u8cc7&quot;","block_context":{"text":"\u6295\u8cc7","link":"https:\/\/www.shutingg.net\/blog\/category\/%e6%8a%95%e8%b3%87\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2025\/06\/What-Works-on-Wall-Street.jpg?fit=965%2C1200&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2025\/06\/What-Works-on-Wall-Street.jpg?fit=965%2C1200&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2025\/06\/What-Works-on-Wall-Street.jpg?fit=965%2C1200&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.shutingg.net\/blog\/wp-content\/uploads\/2025\/06\/What-Works-on-Wall-Street.jpg?fit=965%2C1200&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":333,"url":"https:\/\/www.shutingg.net\/blog\/2011\/05\/21\/333\/","url_meta":{"origin":752,"position":1},"title":"Fix IE home page&ndash;Take back the owner control","author":"Charlotte Guan","date":"May 21, 2011","format":false,"excerpt":"I\u2019ve been struggling for a whole night to fix my Internet Explorer\u2019s home page. I will mark down my experience here: The problem: the home page of IE keep changing back to some website after I set it as blank. Changing the home page in registry shows access denied. Changing\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.shutingg.net\/blog\/category\/technology-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":830,"url":"https:\/\/www.shutingg.net\/blog\/2013\/12\/03\/830\/","url_meta":{"origin":752,"position":2},"title":"Review of The Seven Dials Mystery","author":"Charlotte Guan","date":"December 3, 2013","format":false,"excerpt":"Agatha Christie's books never lack surprise ending. The Seven Dials Mystery is with them. It is mystery mixed with a bit of romance. Like all the other Christie's books, the language of this one is clean and easy going. It makes yet another classic. After reading so many Christie's books,\u2026","rel":"","context":"In &quot;\u66f8\u8a55&quot;","block_context":{"text":"\u66f8\u8a55","link":"https:\/\/www.shutingg.net\/blog\/category\/%e6%9b%b8%e8%a9%95\/"},"img":{"alt_text":"SevenDials","src":"https:\/\/i0.wp.com\/blog.shutingg.net\/wp-content\/uploads\/2013\/12\/SevenDials-187x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":499,"url":"https:\/\/www.shutingg.net\/blog\/2012\/03\/06\/499\/","url_meta":{"origin":752,"position":3},"title":"The true hero that changes the world","author":"Charlotte Guan","date":"March 6, 2012","format":false,"excerpt":"Steve Jobs by Walter Isaacson is the first Biography that I ever willing to read. Reading this Biography is just like reading a novel, as Steve Jobs changed the world as much as a super hero does. Getting to know how Steve Jobs became Steve Jobs, all that I learnt\u2026","rel":"","context":"In &quot;\u66f8\u8a55&quot;","block_context":{"text":"\u66f8\u8a55","link":"https:\/\/www.shutingg.net\/blog\/category\/%e6%9b%b8%e8%a9%95\/"},"img":{"alt_text":"Book-Steve-Jobs-By-Walter-Isaacson","src":"https:\/\/i0.wp.com\/blog.shutingg.net\/wp-content\/uploads\/2012\/03\/Book-Steve-Jobs-By-Walter-Isaacson_thumb.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":743,"url":"https:\/\/www.shutingg.net\/blog\/2013\/04\/08\/743\/","url_meta":{"origin":752,"position":4},"title":"Blood Man","author":"Charlotte Guan","date":"April 8, 2013","format":false,"excerpt":"Blood Man was just a random book I got from Amazon. I didn't expect much when started reading this $0.99 book. But I soon found that it was one of the best novels I've ever read. You can easily tell a good writer from a bad one from the language.\u2026","rel":"","context":"In &quot;\u66f8\u8a55&quot;","block_context":{"text":"\u66f8\u8a55","link":"https:\/\/www.shutingg.net\/blog\/category\/%e6%9b%b8%e8%a9%95\/"},"img":{"alt_text":"Blood Men","src":"https:\/\/i0.wp.com\/blog.shutingg.net\/wp-content\/uploads\/2013\/04\/s26089013-191x300.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":447,"url":"https:\/\/www.shutingg.net\/blog\/2012\/01\/09\/447\/","url_meta":{"origin":752,"position":5},"title":"\u7535\u8111\u786c\u76d8\u5347\u7ea7\u771f\u662f\u6298\u817e\u554a\u2026\u2026","author":"Charlotte Guan","date":"January 9, 2012","format":false,"excerpt":"\u56de\u5bb6\u65f6\u987a\u4fbf\u4e70\u4e86\u4e24\u5757\u786c\u76d8\uff0c\u6253\u7b97\u7ed9\u7535\u8111\u5347\u7ea7\u4e00\u4e0b\u3002\u4f46\u60f3\u4e0d\u5230\u672c\u6765\u5e94\u8be5\u5f88\u7b80\u5355\u7684\u4e8b\u6298\u817e\u4e86\u6211\u597d\u51e0\u5929\u3002\u9996\u5148\u662fx61t\u628a\u5206\u533acopy\u8fc7\u53bb\u4ee5\u540e\u4e0d\u80fd\u542f\u52a8\u3002\u4e0a\u7f51\u67e5\u4e86\u4e00\u4e0b\u8bf4\u662fThinkPad\u7684\u7535\u8111\u6bd4\u8f83\u7279\u522b\uff0c\u786c\u76d8\u8981\u4e48\u6574\u76d8copy\u8981\u4e48\u5148\u7ed9\u65b0\u786c\u76d8\u88c5\u4e2aDos\u80fd\u5f15\u5bfc\u4e86\u518dcopy\u5206\u533a\u3002\u8fd9\u4e2a\u672c\u6765\u5f88\u597d\u529e\uff0c\u4e0d\u5c31\u662f\u6574\u76d8copy\u561b\u3002\u4f46\u504f\u504f\u6211\u7684x61t\u5728\u521a\u5f00\u59cb\u7684\u65f6\u5019\u5c31\u5df2\u7ecf\u88ab\u6211\u6574\u5f97\u5728Ghost 8.3\u4e0b\u6709\u4e09\u4e2a\u5206\u533a\u4e0d\u8ba4\u3002\u800c\u5929\u6740\u7684\u8d5b\u95e8\u94c1\u514b\u6574\u51fa\u6765\u7684Ghost 15\u5c45\u7136\u6ca1\u6709\u6574\u76d8copy\u529f\u80fd\uff0c\u5012\u662f\u591a\u4e86\u4e00\u5806\u534e\u800c\u4e0d\u5b9e\u8f6c\u5360\u786c\u76d8\u7a7a\u95f4\u7684\u9e21\u808b\u3002\u5c31\u7b97\u662f\u6700\u8fd1\u7f51\u4e0a\u5e7f\u53d7\u597d\u8bc4\u7684Acronis\u6211\u4e5f\u6ca1\u6709\u627e\u5230\u6574\u76d8copy\u529f\u80fd\u3002\u627e\u554a\u627e\u554a\u624d\u7ec8\u4e8e\u627e\u5230\u4e86Ghost 11\uff0c\u80fd\u8ba4\u90a3\u4e09\u4e2a\u57288.3\u4e0b\u795e\u79d8\u5931\u8e2a\u7684\u5206\u533a\u3002\u8fd9\u6837x61t\u5c31\u7b97\u662f\u641e\u5b9a\u4e86\u3002 \u7136\u540e\u8f6e\u5230\u6211\u7684HP Pavilion dv7. \u8fd9\u5bb6\u4f19\u5c31\u628a\u6211\u6574\u5f97\u66f4\u60e8\u4e86\u3002\u4e0d\u77e5\u9053\u662f\u4e0d\u662f64\u4f4d\u7684\u5173\u7cfb\uff0c\u4ec0\u4e48\u6df1\u5c71\u7ea2\u53f6\u5de5\u5177\u76d8\u3001Ghost\u542f\u52a8\u76d8\u3001Acronis\u542f\u52a8\u76d8\u3001Partition Magic\u542f\u52a8\u76d8\u4ec0\u4e48\u7684\u901a\u901a\u4e0d\u80fd\u7528\u3002\u8fd8\u597d\u4e4b\u524d\u627e\u5230\u4e00\u5f20Hirens Boot CD 10.2, \u53ef\u4ee5\u542f\u52a864\u4f4d\u7684\u7535\u8111\uff0c\u8fdb\u5165\u4e00\u4e2aWin PE. \u4e8e\u662f\u5728\u90a3\u91cc\u7528Ghost11\u505a\u786c\u76d8copy, \u4ee5\u4e3a\u8fd9\u6b21\u4e07\u65e0\u4e00\u5931\u4e86\u3002\u8c01\u77e5\u9996\u5148\u662f\u6700\u540e\u4e00\u4e2a\u5206\u533acopy\u5931\u8d25\uff0c\u8fd9\u4e2a\u6309Ghost\u7684\u64cd\u4f5c\u63d0\u793a\u5012\u662f\u89e3\u51b3\u4e86\uff1b\u7136\u540e\u662f\u82b1\u4e8615\u4e2a\u5c0f\u65f6\u7ec8\u4e8ecopy\u5b8c\u4e86\u4ee5\u540e\u65b0\u65e7\u4e24\u4e2a\u786c\u76d8\u90fd\u4e0d\u80fd\u542f\u52a8\u4e86\u3002\u63d0\u793a\u662f\u8bf4\u8981\u7528Windows\u5b89\u88c5\u76d8\u4fee\u590d\u3002Microsoft \u53c8\u4e0d\u662f\u4e0d\u77e5\u9053\u73b0\u5728\u7684\u7535\u8111\u90fd\u662f\u9884\u88c5\u64cd\u4f5c\u7cfb\u7edf\u7684\uff0cTNND \u8ba9\u6211\u4e0a\u54ea\u627eWindows\u7684\u5b89\u88c5\u76d8\u53bb\u554a\u3002\u60f3\u7528DiskGenius\u4fee\u590d\u4e00\u4e0b\u78c1\u76d8\uff0c\u504f\u504f\u7f51\u7ad9\u53ea\u80fd\u627e\u5230\u4e2d\u6587\u7248\u7684\u800cHirens Boot CD\u6ca1\u6709\u4e2d\u6587\u652f\u6301\uff0c\u4e8e\u662f\u5f88\u90c1\u95f7\u5730\u770b\u7740DiskGenius\u91cc\u7684\u6587\u5b57\u90fd\u53d8\u6210\u4e86\u65b9\u683c\u3002\u6700\u540e\u903c\u7740\u6211\u4e0a\u7f51\u627eWindows 7\u7684\u5b89\u88c5\u76d8\uff0c\u76d7\u7248\u7684\u4e5f\u597d\u4ec0\u4e48\u90fd\u597d\uff0c\u80fd\u8ba9\u6211\u7684\u7535\u8111\u542f\u52a8\u5c31\u884c\u3002\u6ca1\u60f3\u5230\u8fd8\u771f\u7684\u627e\u5230\u4e86\uff0c\u800c\u4e14\u4e0d\u662f\u76d7\u7248\uff0c\u662fMicrosoft\u7684\u5b98\u65b9\u7f51\u7ad9\u63d0\u4f9b\u7684\u3002\u6211\u662f\u901a\u8fc7\u8fd9\u4e2a\u5e16\u5b50\u627e\u5230\u7684\u3002\u6211\u7684\u662f64\u4f4d\u7684Windows 7 Professional\uff0c\u56e0\u6b64\u662f\u4e0b\u8f7dhttp:\/\/msft-dnl.digitalrivercontent.net\/msvista\/pub\/X15-65805\/X15-65805.iso\u3002\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u5982\u679c\u53ea\u662f\u8981\u4fee\u590d\u7cfb\u7edf\u7684\u8bdd\uff0c32\u4f4d\u7684Windows 7\u4e5f\u662f\u53ef\u4ee5\u752864\u4f4d\u7684Windows\u542f\u52a8\u76d8\u4fee\u590d\u7684\u3002\u636e\u5e16\u5b50\u7684\u4e3b\u4eba\u8bf4\uff0c\u5fae\u8f6f\u4e4b\u6240\u4ee5\u63d0\u4f9b\u4e0b\u8f7d\uff0c\u662f\u56e0\u4e3a\u6709\u5f88\u591a\u7f51\u7ad9\u51fa\u552eWindows\u7684license, \u800c\u4e3a\u4e86\u7ed9\u5728\u7f51\u4e0a\u4e70license\u7684\u7528\u6237\u63d0\u4f9b\u5b89\u88c5\u789f\uff0c\u4e8e\u662f\u5c31\u63d0\u4f9b\u4e86\u5404\u4e2a\u7248\u672c\u7684\u5149\u76d8\u955c\u50cf\u4e0b\u8f7d\u3002\u4e0d\u8fc7\u5f53\u7136\u4e86\uff0c\u867d\u7136\u6709\u4e86\u5b89\u88c5\u76d8\uff0c\u6ca1\u6709\u5e8f\u5217\u53f7\u4e5f\u662f\u4e0d\u80fd\u7528\u5b83\u5bb6\u7684Windows 7\u7684\u3002\u6700\u540e\uff0c\u5f53\u7136\u662f\u901a\u8fc7\u8fd9\u4e2aWindows\u5b89\u88c5\u76d8\u8f7b\u677e\u628a\u63e1\u7684\u7cfb\u7edf\u7ed9\u6062\u590d\u4e86\u3002\u4e0d\u8fc7\u5230\u6700\u540e\uff0c\u6211\u4e5f\u6ca1\u6709\u660e\u767d\u5b83\u6700\u521d\u662f\u600e\u4e48\u6b7b\u7684\u3002 \u5f53\u4e00\u5207\u90fd\u4fee\u590d\u6210\u529f\u540e\uff0c\u542f\u52a8\u65f6\u8fd8\u591a\u51fa\u4e86\u4e00\u4e2aWindows 7\/Vista\u7684\u542f\u52a8\u9879\u3002\u8fd9\u4e1c\u4e1c\u4e0d\u80fd\u542f\u52a8\uff0c\u5374\u6bcf\u6b21\u90fd\u8981\u7b4930\u79d2\u8ba9\u6211\u9009\u62e9\u3002\u8fd9\u91cc\u987a\u4fbf\u8bb0\u5f55\u4e00\u4e0b\u600e\u4e48\u5728Windows 7\u4e0b\u79fb\u9664\u591a\u4f59\u7684\u542f\u52a8\u9879\u5427\uff1a 1\u3001\u8fd0\u884c\u5177\u6709\u7ba1\u7406\u5458\u6743\u9650\u7684cmd.exe \uff08\u6ce8\uff1a\u975e\u7ba1\u7406\u5458\u6743\u9650\u7684\u65e0\u6548\uff09 \u5728\u5f00\u59cb\u83dc\u5355\u7684\u641c\u7d22\u6846\u91cc\u8f93\u5165cmd\uff0c\u5148\u522b\u6309\u56de\u8f66\uff0c\u7b49\u4e00\u4f1a\uff0c\u4f1a\u663e\u793acmd.exe. \u5bf9\u5b83\u53f3\u952e\uff0cRun as administrator. \u8fd9\u6837\u5c31\u662f\u6709\u7ba1\u7406\u5458\u6743\u9650\u7684cmd.exe\u4e86 2\u3001\u8f93\u5165bcdedit \u8fd9\u6837\u4f1a\u5217\u51faWindows Boot Manager\u548c\u6240\u6709boot\u9009\u9879\u3002\u627e\u5230\u4e0d\u60f3\u8981\u7684boot\u9009\u9879\u7684identifier. \u4e00\u822c\u4f1a\u663e\u793a\u6210identifier {...}, \u8bb0\u4e0b\u8fd9\u4e2a{...} 3\u3001\u8f93\u5165bcdedit \/delete {...} \u8fd9\u91cc{...}\u5c31\u662f\u4f60\u4e0d\u60f3\u8981\u7684\u90a3\u4e2a\u9009\u9879\u7684identifier\uff0c\u4e0d\u8981\u5220\u9519\u4e86\u3002 \u6210\u529f\u4e86\u4f1a\u663e\u793aThe operation completed\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.shutingg.net\/blog\/category\/technology-2\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/posts\/752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/comments?post=752"}],"version-history":[{"count":10,"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/posts\/752\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/posts\/752\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/media?parent=752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/categories?post=752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shutingg.net\/blog\/wp-json\/wp\/v2\/tags?post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}