Hello, prawns! I have a requirement, suppose I currently have a script a.py, which is as follows:
-sharp!/usr/bin/env python
-sharpcoding=utf-8
def aaa():
Mode = "1"
KeyWord = "hello"
return Mode,KeyWord
def bbb(p):
m=1
n=2
z=m+n+p
return z
print (aaa())
now there are two questions:
1) what should a b.py do if he wants to get the Mode and mGrainn in a.py?
2) Why is the execution effect of the following script ("1percent," hello")? Instead of
("1century," hello")
103
-sharp!/usr/bin/env python
-sharpcoding=utf-8
from a import aaa,bbb
aaa()
bbb(100)