forked from tdwojak/Python2017
resolved
This commit is contained in:
parent
0ec6182dde
commit
aac65580c0
@ -5,10 +5,18 @@ jakie zostały przekazane do proramu. Załóź, że argumentami do programu będ
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from labs05.task00 import suma
|
from task00 import suma
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
def main():
|
||||||
|
arguments=sys.argv[1:]
|
||||||
|
float_arguments=[]
|
||||||
|
for arg in arguments:
|
||||||
|
float_arguments.append(float(arg))
|
||||||
|
|
||||||
print(suma([3,213,123,24,4]))
|
print(suma(float_arguments))
|
||||||
print(sys.argv[1:])
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user