Created
April 15, 2013 00:22
-
-
Save jay-zhuang/5384845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class customersSystem | |
def say_hello(): | |
if customer_name and customer_name in customer_list: | |
print "hello " + customer_name | |
# the code needs to be change and it is longer than 80 | |
if customer_name and customer_name in system_database.get_customer_list(): | |
print "hello" + customer_name | |
# To format this code, "=" will not help you. | |
# if textwidth has been set, just add baskets around it would automatically warp the code: | |
if (customer_name and customer_name in | |
system_database.get_customer_list()): | |
print "hello" + customer_name | |
# if there's existing code you want to re-format: | |
if (customer_name and customer_name in system_database.get_customer_list()): | |
print "hello" + customer_name | |
# "gqgq" could warp the current line. Or "gqh" | |
if (customer_name and customer_name in | |
system_database.get_customer_list()): | |
print "hello" + customer_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment